ansar9h / Publications
Forum
why multi charts drawing does not work while backtesting?
trying to draw on a different chart while backtesting does not work. The ChartNext is always coming -1
iBarShift not returning correct index?
datetime day_time = iTime ( Symbol (), PERIOD_D1 , 2 ); double day_price= iHigh ( Symbol (), PERIOD_D1 , 2 ); int shift= iBarShift ( Symbol (), PERIOD_M15 ,day_time); datetime actual_time = iTime ( Symbol (), PERIOD_M15 ,shift); double actual_price = iHigh ( Symbol (), PERIOD_M15
how to draw an arrow on multiple timeframes
i have two charts on the screen. both representing the same currency but different timeframes 15M and H1. below code i use to draw an arrow. works fine but problem it is getting drawn on M15 timeframe. i want to draw it on H1 timeframe. I believe the issue something to do with the chartId but
calculating volume based on risk amount for gold
i use this code for calculating volume based on riskAmount and stop loss distance. this code works fine with forex trading but with gold it is not working properly. with gold the volume is always wrong it always give me 10 times the actual volume i need. double calculateVolumne ( double riskMoney
background color of rectangle not working
this the code below, the rectangle showing but background color does not show ObjectCreate ( 0 , "RECTANGLE_LABEL" , OBJ_RECTANGLE , 0 , x, fromRange, x2, toRange); ObjectSetInteger ( 0 , "RECTANGLE_LABEL" , OBJPROP_COLOR , clrYellow ); ObjectSetInteger ( 0 , "RECTANGLE_LABEL" , OBJPROP_BGCOLOR
wrong data showing in tesla stock chart while trying to backtest
I have attached screenshot of the tesla stock. I am using mt5 account from [broker name redacted]
Backtesting showing wrong result in the graph
please check the attached screenshots . There is a discrepancy between data showing in the backtest section and graph section
getting error "Invalid Price Length 13" when placing an order
please check my code below MqlTradeCheckResult m_check_result; MqlTradeRequest request; request.price = 132.628 ; if (! OrderCheck (request,m_check_result)){ return false } return OrderSend (request, result); OrderCheck is failing and returning false because the price value is wrong. The
toolbox UI issue
please help something wrong with toolbox not expanding properly