how to check last lot to be continue after EA got kick out form chart ?
-
My problem is i do martingale EA and sometime my EA got kick out from chart
and when is add EA again to the chart ,an EA can not remember last lot was open .
please anyone help me, -
You need to use Terminal Variables to store the information of those variables in the 'on deinit' tab. That will save them when the bot is removed from the chart. Then You need to retake them in the 'on init' tab when the bot is running on the chart again.
-
Using de init and on init is how to save a value when removing EA from chart, on a random crash you need to save regularly or do something like what's in this link: https://fxdreema.com/shared/6GuQtLpkc
-
thank you so much i will try
-
@jstap

Do something like this ? on deinit
and on init
thank you in advance sir.
-
Add a shared link rather than pictures to see what you've done.
-
@jstap here sir https://fxdreema.com/shared/4Dj3DvO6c
i'm confuse with on init and on de init . sir what i should do. -
On init you need to call a variable you already have saved, on deinit you need to pass the information you already have (using on tick), I doubt it will get information to save
-
@jstap on init i need to add block for each trade (pink block) and yellow terminal right ?
and on deinit do the same , and on tick too ? thank you so much sir -
No because on int call the las saved value, save this on tick every time a trade is placed, or the lot changed
-
@jstap Thank you so much sir i will try on monday
have a lovely day -
You too (on the link above it shows you how to save when something has happened)