Forum

Plotting issue and the data is different on ATR (MQL5)

Hey, I'm having a issue on a ATR indicator. Even though the codes don't have any problem when compiling, it doesn't plot on the screen. I think there is a thing that I didn't get on PlotIndexes. I also checked the datas of arrays(ind_buffer1, ind_buffer2) and nothing is wrong, the data is correct

Why don't Crypto Currencies brokers use Metatrader Platforms?

I always wonder that. Why don't crypto brokers support Metatrader Platforms? It's very easy to use for all of us. Is there a technical issue making it difficult to work? I know some brokers supports some major crypto coins but these are only up to 12 pairs. It's nothing

OrderType Issue in a for loop

Hey, I would like to ask a question for the my issue I've been experiencing. It's so weird. I have a for loop to close my orders. As you see on the code, the if(OrderType()==OP_BUY) block doesn't work. And more interesting than that this, this block works on a X broker, but doesn't work on Y broker

Can't get values of the objects

int objects = ObjectsTotal (); string comment = StringConcatenate ( "\n\n" , objects); for ( int i= ObjectsTotal ()- 1 ; i>= 0 ; i--) { string name = ObjectName (i); ENUM_OBJECT type = ( ENUM_OBJECT ) ObjectGetInteger ( 0 ,name, OBJPROP_TYPE ); if (type =

How To Get the Angle Values of TrendLines - OBJPROP_ANGLE

Hey, I'm on a script to test something but I have a problem. I have an indicator that draws trendlines on the charts. As you in the pic (attached) I can see it's angle value (343.3) but when I try to call it in the codes by OBJPROP_ANGLE I get 0 value. I tried my best on this but I couldn't solve

OrderClose 4108 Error

Hi, I'm backtesting my basic codes and I actually don't have any problems while backtesting it on results but I get OrderClose 4108 Error on Journal tab. There is my codes, what do I wrong? I did some researches but couldn't find the answer to fix my codes. I would appreciate your helps. int ticket