theDUDE / Publications
Forum
StopLevel
I have been studying the the code for the jolly roger ea and have a few questions.... StopLevel= SymbolInfoInteger ( Symbol (), SYMBOL_TRADE_STOPS_LEVEL ); //--- set orders if ( PositionsTotal ()< 1 && OrdersTotal ()< 1 ) { if (rsiVal[ 1 ]<RSILevel && Ask>rates[ 0 ].low) {
CopyTicks help
This code gives error: Ticks could not be loaded. GetLastError()=4014 I don't know why. input int ticks= 10 ; // the number of requested ticks //+------------------------------------------------------------------+ //| Expert initialization function |
calculating lots
//+------------------------------------------------------------------+ //| volume | //+------------------------------------------------------------------+ double volume() { Lots=AccountInfoDouble( ACCOUNT_MARGIN_FREE )/8000; Lots=MathMin(15,MathMax(0.1,Lots));
any difference????
I'm just wondering if there is any difference between the two lines of code below.... (for calculating the spread) 1: double Spread_1=NormalizeDouble(SymbolInfoDouble(Symbol(), SYMBOL_ASK ) - SymbolInfoDouble(Symbol(),SYMBOL_BID),_Digits); _______________ 2: MqlTick current_price; double
what is _Point ????
I've read the documentation, and looked at some examples of code, but still not sure what this guy does. Help! Is it the same as _Digits
CTrade vs MqlTradeRequest - help
I'm just confused, it appears to me that both CTrade and MqlTradeRequest can be used to place a trade independently. Is this true? And if so, is one better that the other