@jpj52byu You can do something like this:

I used 2 different MA to confirm there was a crossing somewhere in the last 50 candles. However, this way to do it will not tell you if there was more then one crossing with that period.
@jpj52byu You can do something like this:

I used 2 different MA to confirm there was a crossing somewhere in the last 50 candles. However, this way to do it will not tell you if there was more then one crossing with that period.
I'm not a programmer, so I cannot confirm the code is correctly copied, but definitely the issue is there.
No. I just need the weekly open price value. I don't need to modify anything. The problem is the bot will be working on a lower TF and then bug is active. Do you know what custom code should be used to store that value regardless the active TF?
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.
Could you please share the link to your project?
They are working fine on my end. Does the issue still persists?
@13353299527 Correct. That is the way to create a variable. What you need now is making the calculation of the next lot size every time a trade is closed. Something like this in the 'on trade' tab:

@princeomughele Can you please prove the answer is wrong?
Are you sure that custom code is correct? And you can remove the 'pass' block on top. It is redundant in that position.
fxDreema can be used to create EAs only, not indicators, sorry.
Did you import your indicator into your fxDreema account correctly? Are buffers correctly identified?
You can use variables to tell the launcher when that happened. You can also create a loop, but the first option is easier. Are you familiar with variables?
You need to create a variable for the lot size value. and then do that calculation for the next lot size value immediately below both 'buy/sell now' blocks. Are you familiar with variables?
@alivakilzadeh This is the second thread you opened for the exact same question. Please don't duplicate threads.
@jstap Just curious. Should each value (SL, TP,...) be stored into a separate global variable or can all of them be stored into the same one? Sorry for my ignorance.
Did you pay via crypto? If so you should contact the admin lo let him know.