You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello
I am trying to keep track of and use the most recent OrderProfit in a calculation for Lot Size and I'm not sure if I'm going about it correctly. Here is what I'm doing:
I have a LotSize function that I want to use the most recent "Closed" profit in, which I am trying to store and get from the for-loop in start(). I then use the Lots in my buyLevel trigger.
Is this the proper way to keep track of the profit? It seems like I don't need to check this after each tick, rather only when the Ticket changes? Should this be in start()?
Thanks for any help