Profit / loss Target by Time Filter
-
Hello I need help to create Target Profit/loss by time filter : https://fxdreema.com/shared/GfatOvY7e
How to get reset the Target if "1st Time filter" closed, and Reset to 0 again after "2nd Time filter" started??
I found this topic
https://fxdreema.com/forum/topic/15390/daily-target-profit
but this sample only reset by daily.
-
Do you mean you need all profits to reset at the end of both blocks 4 and 5?
-
@l-andorrà yes that's true. I need to reset all profit each of end timeframe.
-
Then you need to reset the 3 variables (open result, closed result and final result= to zero in a 'Modify variables block connect to both YELLOW output dots for blocks 4 and 5.
-
@l-andorrà Hello, can you please explain again how to reset open result, closed result and final result to zero.
I have put them In a modify variable and connect it to end of daily profit target but it is still keeping the last result the next day and cannot reset.https://fxdreema.com/shared/ixyJmI1Mb
Any help please
-
The problem is that the daily profit value is not reset correctly because brokers still use yesterday's closed trades values. I needed almost one year to understand. You need to reset all variables NOT at 00:00 as anyone would think. Brokers still use yesterday's values at 00:00. You need to reset al variables at 00:05 at the MINIMUM. Preferibly later.
-
@l-andorrà Thanks a lot .
If you don't mind could you please send a sample. Since I don't know in which block I should reset all variable at 00:05 at the minimum.
could you check the link below where to adjust the reset date -
This is why I use once per daily bar, because this waits for the 1st tick of the day.
-
@jstap I also used it, but some brokers (Admiral Markets, for example) still use yesterday's data on the first tock of the day. I wasted almost 2 months of my life trying to understand why it never worked until the admin recommended me to be watching the chart at the moment a new trading session began. I was astonished. It was not until 00:05 that yesterday's data is 'deleted' from the MT4 data access. Apparently not all brokers do, but man, I was close to be crazy until I got it.

-
Brokers can affect many things, like charts not moving until 01:00, to me though the first tick happens at this time. Over the years I have thought brokers were being dodgy, only to realise that it was my expectations.