Forum

Break your losing streak

Hi guys, i have got an idea to break losing streak of a trading system. lets say we have a 4 consecutive losses, then we will skip two trades after first losing trade. is it possible to code such thing? only disadvantage iam seeing here is you miss two profit trades if you dont have a streak after 1

buy sell conditions

Hello guys, iam trying to learn coding of mql4. i just want to know how to add buy sell conditions in any simple indicator. so far i have realized that variables are in box int start() and variables are defined as double box_top=0; double box_bottom=0; so i need to add buy sell conditions like

how to write this

hey guys, i have following simple code i want to write with buy sell as iam newbie to this language learning to code from very basic..... i have this amibroker code written by me...just want to write in mt4 language. i want signal on every candle so iam not using exrem function of amibroker Plot( C