how I can write the code to entry 1 time long for day?
Currently I use this code but doesn't work as I want because I can have 2 entries for day, 1 long and 1 short
Code: Select all
EntriesToday(Date) = 0
tradingest
Code: Select all
EntriesToday(Date) = 0
Code: Select all
IF Date <> Date[1]
Then
var1 = totaltrades // Holds var1 value at the start of each day
var2 = var1 - totaltrades
AND var2 < 1 // requires that no other trades have been taken for the current day
Then Begin