Forum

A command to draw in foreground

Hi guys, could someone please suggest a command to draw an indicator in foreground? I tried ObjectSetInteger(0,"My-indicator",OBJPROP_BACK,false); but the line is still projected under the candles

Sell an indicator for the strategy tester

Hi everybody. I developed an indicator to practice manuial trading on the strategy tester . it let the user do trading at a faster speed, thanks to the strategy tester use, buying, selling, placing the stop loss and administering a little capital in terms of pips. The problem is, being an indicator

unknown retcode 0 while modifying position

Hi, could someone help me? I'm trying to write a code to modify a position with up and down buttons. The button are correctly working but the attempt to modify the position ends in unknown retcode 0. Here's the code for ( int i = PositionsTotal () - 1 ; i >= 0 ; i--) // loop all Open Positions { if

Show styles in property window

Hi, everybody. I searched everywhere, read the manual, asked the AI but I cannot find the way to show this in the properties window: Someone knows how to do that? I need to assign the user preferred color to the lines in a custom indicator . Thanks

Hide price on price scale

Hi, everybody and a good day! My indicator creates many horizzontal lines and I would like to hide the tag prices on the right side price scale in order to have a cleaner graphic. My code is this: ObjectDelete ( 0 , "Level_Lines" ); ObjectCreate ( ChartID (), "Level_Lines"

Problem in assigning a custom color as #property

Hi, a good day to everybody. Can someone help me? I want to let the user modify the color in the Example indicator ZigZag, so I added this code to it: enum Colors { color1= clrBlack , // Black color2= clrBrown , // Brown color3= clrLimeGreen , // LimeGreen color4= clrMediumSeaGreen , //

Strategy tester cannot find custom images

Hi, everybody. I created an indicator with custom images drawn as OBJ_BITMAP_LABEL objects . I placed the images in Images folder inside the MQL5 folder. When I try my indicator in the strategy tester only empty squares are appearing although I created an equal Images folder inside the MQL5 folder

Cannot draw OBJ_TREND dotted line

Hi, everybody. Is it possible to draw a dotted trend line or that kind of line can only be a solid one? My code is ObjectDelete ( 0 , "TrendChanSignalsM15D" ); ObjectSetInteger ( 0 , "TrendChanSignalsM15D" , OBJPROP_BACK , false );

Indicators cannot work together

Hi everybody and a good day. I coded 6 indicators that trace automatic channels on different timeframes, they work flawlessly alone but they stop working when applied together to the chart. Every indicator use a handle to get the timeframe IMA data and I declared them in OnInit as you said. First

Cannot preload bollingers data

Hi everybody. Could someone help me? I'd like to preload bollingers bands data in the OnInit function with 20 previous points. I'm trying with this scripts counter= 1 ; points_counter= 1 ; for (counter; counter < 20 ; counter=counter+ 1 ) { handle1= iBands ( NULL , PERIOD_M1 , 15 ,counter, 1.4