Forum

Plot two oscillators on the same chart with Expert Advisor

Hello I want to plot RSI and CCI on the same chart. I tried to use "ChartIndicatorAdd" as described here https://www.mql5.com/en/docs/chart_operations/chartindicatoradd but it seems not working: RSI and CCI still appear on two separate windows. Here is the code I run: int OnInit () { RSIdefinition

Different behavior by using Buystop() or PositionClose()

Hello everyone! I am experiencing something weird while backtesting my trading system. I made two versions of the same TS: 1st VERSION: This is how I open short positions (I skipped useless code): //OPENING SHORT POSITION if (order == "sell_first_A" ) { TP_price =