Forum

Calling a function after stoploss triggered

In mql5, i made an ea that places multiple pending orders . Now when the stoploss of one of those gets triggered, i want to run a function that gets the input parameters (open price, stoploss and takeprofit) from that trade. I don't know how to start that funktion exactly when a stoploss gets

mql5 Account negative balance

After using the cloud network for backtesting, my mql5 Account went from 10$ to -18$. How can this happen, souldn't it stop when theres not enough money left? Also, will i get any problems from this? I haven't received an email from this website about the negative balance. On my profile it says now

How can i tell iBands to work with a different value?

I want to use the bollinger bands as normal, just with one exception: For the newest, the current candle, the bollinger bands shouldnt move as the price changes. I want to set a certain value, and the bollinger bands should form as if this value is the price of the current candle. Is that possible