Time as a variable
-
Hi i am looking to use time as a variable so that when the ea first loads it places the current time in a variable. Then a bucket of closed postions would use the variable as its start time. Once a certain amount of profit is hit on closed and current postions then all trades are closed and a block is run that will update the time variable. I'm not sure if this is actually possible. using the buckets ok but controlling what tiem period the one looking at closed postions is proving impossible for me.
-
@goatan
Working with minutes and hours is really frustrating, I have found it better to count the bars:

-
I agree. Counting bars on the appropriate chart is much easier than catching a 'standard' time variable.
-
@roar said in Time as a variable:
@goatan
Working with minutes and hours is really frustrating, I have found it better to count the bars:

@l-andorrà said in Time as a variable:
I agree. Counting bars on the appropriate chart is much easier than catching a 'standard' time variable.
Thank you both this gives me something to look into and i have never noticed the modify variable block before.