Forum

MessageBox() - More than 3 Buttons possible?

Hello, according to the documentation ( https://docs.mql4.com/constants/io_constants/messbconstants ) " The main flags of the MessageBox() function define contents and behavior of the dialog window. This value can be a combination of the following flag groups:" But when I try this: int PlaceTrade =

Logic Problem: Draw line, and change color / stop drawing when hit

Hola, I have some trouble finding the correct Logic. With this indicator I want to get a candle body that is X amount bigger than the previous (Works so far) and draw a line at the open price (also works). Now if the price crosses any of the lines, i would like to change its color and stop it from

Trying to find the biggest body of the last X candles

Hello, I am trying to find the biggest body of the last X (in this case 3 ) candles. Any help is greatly appreciated. This is what i have so far: int index= 0 ; double delta= 0 ; double delta2= 0 ; for ( int i= 0 ;i< 3 ;i++) { // if (delta<High[i]-Low[i]) if (delta< Open [i]-

Round current price to closest(up or down) round number (00,25,50,75)

Hello, I am trying to figure out how to get the current price (DAX/GER30 with 2 decimals i.e 12263.71) and convert it to the next closest round number up/or down that ends in 00,25,50 or 75 -> 12275.00 I am trying with: bidAsInt = MathFloor (( Bid / Point )/ 100 ); But this only returns 12263

Help modifying an Indicator

Hello all, I could need some help with this modification. I am trying to change the OBJ_VLINE to a OBJ_TREND in order to stop it from drawing the line on the bottom indicator window and only drawing the line on the chart. But I am unsuccesful as my coding skills are basic at best. Any help would be