Adnan Syed / Publications
Forum
Indicator Causes EA to fail
I found this indicator on github. It loads in terminal just fine. When called via EA it fails. Alert: Error 0 while getting handle on Price_Density I replicated the error by using a test EA. Any help would be much appreciated. This is sample code of EA getting handle in OnInit, that generates an
#property strict usage in MT5 Expert or Indicator
I have not been able to find and clear information on " #property strict" usage. If you can share a link where usage of #property strict is explained, I will greatly appreciate it. Thank you
Symbol Info Double
Any ideas why non of these coded lines return any values but ZERO. double Buy_Volume = SymbolInfoDouble(_Symbol,SYMBOL_SESSION_BUY_ORDERS_VOLUME); double Sell_Volume = SymbolInfoDouble(_Symbol,SYMBOL_SESSION_SELL_ORDERS_VOLUME); double Max_Volume = SymbolInfoDouble(_Symbol
Buffer[0] to variable copy
I have current EA logic portion using actual buffers [0] and [1]. buffer zero values are constantly changing. here is my question if I copy the buffer[0] to a variable how often will that value update in the variable
Tracking Order trigger
Hi Guys, I have 4 Short and 4 Long conditions in a single EA that are working fine. Orders are opening , now here is my questions. Is there a way i can assign a unique identifier to every position that opens so i can track source logic of that order. so that i may tweak individual conditions more
is it possible to use Take Profit = TP in to reverse position
On this example below Line 1 receives a signal to sell and checks for any open short positions Line 2 defines the Vol, Price, SL, TP if (signal =="sell" && PositionsTotal()<1) trade.Sell(1.0,NULL,Bid,0,(Bid-200 * _Point),NULL); My question is : Can I pass as Argument here that TP is a condition not