Expert Advisors: Bands 2

 

Bands 2:

Ein Handelssystem basierend auf dem Indikator iBands (Bollinger Bands, BB). Er platziert die Pending-Orders Buy Stop und Sell Stop innerhalb der angegebenen Zeitspanne (von XX Uhr bis YY Uhr).

Autor: Vladimir Karputov

 

hello @Vladimir Karputov

good work, thanks, but is there a typo in the code i guess?


if i select stop loss type moving average it will use bollinger bands instead, pls fix it thx


wrong:


case sl_ma:
sl_buy_stop = bands_lower+i*ExtStep;
sl_sell_stop= bands_upper-i*ExtStep;
break;
case sl_bands:
sl_buy_stop = ma+i*ExtStep;
sl_sell_stop= ma-i*ExtStep;


the case statements should be swapped!

correct i guess is if you swap the case statements, right?!


can you maybe please fix this? thanks and btw a breakeven option would be cool to have, if you can add this and have time for it we would appreciate it!

 
someone :

hello @Vladimir Karputov

good work, thanks, but is there a typo in the code i guess?


if i select stop loss type moving average it will use bollinger bands instead, pls fix it thx


wrong:


case sl_ma:
sl_buy_stop = bands_lower+i*ExtStep;
sl_sell_stop= bands_upper-i*ExtStep;
break;
case sl_bands:
sl_buy_stop = ma+i*ExtStep;
sl_sell_stop= ma-i*ExtStep;


the case statements should be swapped!

correct i guess is if you swap the case statements, right?!


can you maybe please fix this? thanks and btw a breakeven option would be cool to have, if you can add this and have time for it we would appreciate it!

Entschuldigung, Sie können den Code selbst ändern. Dieses Projekt ist veraltet und abgeschlossen.

 

hallo, der code hat einen fehler, bitte beheben sie ihn. wenn ich sl typ bb auswähle, verwendet er stattdessen sl typ ma.


@Vladimir Karputov

falsch: case sl_ma:
sl_buy_stop = bands_lower+i*ExtStep;
sl_sell_stop= bands_upper-i*ExtStep;
break;
case sl_bands:
sl_buy_stop = ma+i*ExtStep;
sl_sell_stop= ma-i*ExtStep;
05:14
Korrekt ist, wenn man die case-Anweisungen vertauscht, oder?!
 
someone:

Hallo, der Code hat einen Fehler, bitte beheben Sie ihn. Wenn ich sl Typ bb auswähle, wird stattdessen sl Typ ma verwendet.


@Vladimir Karputov

falsch: case sl_ma:
sl_buy_stop = bands_lower+i*ExtStep;
sl_sell_stop= bands_upper-i*ExtStep;
break;
case sl_bands:
sl_buy_stop = ma+i*ExtStep;
sl_sell_stop= ma-i*ExtStep;
05:14
Korrekt ist, wenn man die case-Anweisungen vertauscht, oder?!

Forum über Handel, automatische Handelssysteme und Strategietests

Expert Advisors: Bänder 2

Vladimir Karputov, 2020.05.24 16:52

Entschuldigung, Sie können den Code selbst ändern. Dieses Projekt ist veraltet und abgeschlossen.


 
Vladimir Karputov:

Hallo,


sorry, ich konzentriere mich auf andere Projekte und bin nicht erfahren mit mql-Programmierung, vielleicht kann uns jemand anderes helfen oder wenn Sie wieder Zeit haben, können Sie es tun, thx!

 
Ein optimaler Code zum Erlernen von Befehlen und zur Verbesserung der Leistung von persönlichen Strategien.