Hello i am trying to read a file from the common directory but its not working Here is the code that i am trying : input string FileName= "15767168" ; string Directory= TerminalInfoString ( TERMINAL_COMMONDATA_PATH ); void OnInit () { ResetLastError (); int file_handle= FileOpen (Directory+
I was just wondering if its possible to change the magic number of the remaining order , once its been closed partially ? for example if i have 1.0 lot open and its magic number is 140, now if this order is closed partially (0.3 lots are closed from original trade) then the remaining opened lot for
I was just wondering if there is any way to identify the type of a certain pair (by type i mean to identify if its currency pair , or indices or crypto pair ) I tried Using this : Print ( SymbolInfoString ( "XBTUSD" , SYMBOL_DESCRIPTION )); I was hoping that SYMBOL_DESCRIPTION might give me some
Hello I am trying to calculate Risk based lot size for XAUUSD but its giving me wrong value , and couldnt figure out what i am doing wrong here is my code : extern double RiskPerTrade = 2 ; extern int StopLoss = 5000 ; //SL points double CalculateLot ( double StopLoss_) { double
I am making a trade copier , and i was just wondering if my approach will work : Terminal A sends and Order a1 to the terminal B , string that is received at the terminal B contains : tp,sl,lots,pair and ticket number Order a1 now I am planning to use Ticket number of Order a1 as the magic number
I am trying to draw a trend line in a separate indicator window , but the lines are being drawn in the main window instead of indicator window What am i doing wrong ? here is my code : #property indicator_separate_window #property indicator_minimum 1 #property indicator_maximum 2 int OnInit () {
I am trying to Read values from a file but struggling for past few days (its the first time i am trying to read the file so pardon any mistakes ) I cant figure out what i am doing wrong here. here is the simplified version of the code: Here i am trying to read the values from bin file struct
Hello I am trying to draw Arrows Based on another indicator's signal from higher timeframe, but the problem i am facing is that it draws the arrow on multiple candles For example : If I check the arrow visibility on W1 timeframe and have the my indicator draw the arrow on D1 timeframe it will draw 5
is it possible to draw a trend line forward in time ? for example: from low of candle -5 to high of candle -8 ? I tried this but its not working since it expects a positive number ObjectCreate ( 0 ,i, OBJ_TREND , 0 ,Time[- 5 ],High[- 5 ],Time[- 8 ],Low[- 8 ]);