Just add this under for each and above your buy block.

Just add this under for each and above your buy block.

You need to set the timeframe to 5 minutes in for the candle, test on 5 minutes, and draw a line on the candle so you can see what it's doing.

A bool variable is in that link, as is though will constantly change from true to false, above to below as price moves, click on it to check what it does, then download to test, and ask any questions you need clarification of.
@jbillionz Equity is constantly changing, I would record the balance at the start of placing the first trade, balance / 100 * 2 will give you 2%, place the trades with a group if you need to distinguish from other running trades, check the profit of the 2 trades, then close if this number is reached
I should have showed you this, change the state on one of your buttons to pressed

redraw the button on tick and change properties

Before what?, chose your start candle, and check the 10 previous candles, rsi on candle x is > than what you saved into a variable.
I think this is a custom enum, because the value is: Close price not PRICE_CLOSE

Pass me the indicator here and I'll see if I can get it to work
If I understand this, every tick you try to count from -5 which doesn't exist yet?
If you select indicator rather than candle you have many heaikin ashi options
Add a shared link to see what you have done
That is a standard MT enum,
ENUM_APPLIED_PRICE - Applied price - PRICE_CLOSE
Should do it
is probably because on Monday 1 day offset is Sunday, check the day and if Monday get the price of 3 days before
use custom code, some bits will need to be deleted or put on the correct tab, oninit, ontimer, ontick etc