I have a simple Algo, which I plan to work 24/7 with.
For each session I have condition that if True, the Algo should stop for the rest of that session. The condition is if I meet certain goals. For this calculation I use 2 variables:
- GetAccountValue(AccountItem.RealizedProfitLoss)
- Position.GetProfitLoss
Both of them give me the Pnl realized and unrealized of that session. My question is:
Whenever a new forex session begins from 17:15:00, are these variables reset to Zero by the system, or will they carry their value till 00:00:00 of the next day?
I appreciate your knowledge regarding this cause it's pretty important for my objective.
Comment