Forum

SYMBOL_TRADE_CALC_MODE returned values

I can't find a clear documentation about the values returned by the SYMBOL_TRADE_CALC_MODE. Print ( SymbolInfoInteger ( _Symbol , SYMBOL_TRADE_CALC_MODE )); would result in 0 for forex (I guess), 2 for CFDs.. do you guys have faced a similar situation

How to deal with multiple CreateObject() functions

Hello, I'm trying to create an indicator to show some basic info but I have problems with text objects. It only draws the last text label like it's overwriting it, I suspect it's because of the indicator buffers but I'm not sure

Can't Plot Arrows

Hello, this code should plot some arrows but it doesn't. It only prints the correct values in the journal, please can you help me? #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Blue // Inputs input int max_bars = 1000 ;

Pending Order EA

HI Guys, Can anyone help me making an EA of pending Orders: If market price equals = X or Current Price then place buy stop order at market price Y and place sell stop order at market price Z Thanks, Alessia