Forum

function declarations are allowed on global, namespace or class scope only

bool GetSymbolInfoDouble( const string symbol, ENUM_SYMBOL_INFO_DOUBLE property, double &result){ if ( SymbolInfoDouble (symbol, property, result)) { return true ; } else { Print ( "Failed to retrieve symbol information for: " , EnumToString

array out of range in (41,47)

double FastEMAValue[ 2 ], SlowEMAValue[ 2 ], ATRValue[ 1 ], TrendEMAValue[ 1 ], HigherTimeframeEMAValue[ 1 ]; double MACDValueMain[ 2 ], MACDValueSignal[ 2 ]; int copiedFastEMA = CopyBuffer (FastEMAHandle, 0 , 0 , 2 , FastEMAValue); int copiedSlowEMA = CopyBuffer (SlowEMAHandle, 0 , 0 , 2

isBuySignal: false macdBuySignal: false isSellSignal: false macdSellSignal: false

if (isBuySignal && macdBuySignal && !LastTradeWasBuy) { double sl = ask - SLPoints * _Point ; double tp = ask + TPPoints * _Point ; Print ("Attempting Buy Order: ", " Lots: ", Lots, " Symbol : ", Symbol (), " Ask: ", ask, " SL: ", sl, " TP: ", tp); if (trade.Buy(Lots, Symbol ()

'SymbolInfoDouble' - no one of the overloads can be applied to the function call

int minStopLevel = SymbolInfoInteger ( Symbol (), SYMBOL_TRADE_STOPS_LEVEL ); if (minStopLevel == - 1 ) { Print ( "Error retrieving minimum stop level" ); return ; } double minStopDistance = minStopLevel * _Point ; double spread; if (! SymbolInfoDouble ( Symbol ()