Forum

how to define lable that can move when resize the window

hi I put label in my expert and use below codes bool Label( const long chart_ID= 0 , const string name= "Label" , const int sub_window= 0 , const int x= 0

how to define that don't put arrow and line when I open position

hi when I open position in the chart shows some line and arrow I don't want it puts this objects in the chart when I open position what should I do? Best Regards Neda

how I can open 2 position

hi I wrote an expert that define 2 button Buy and Sell can I define that when click on each button it opens 2 position in one click I mean when I click on Buy it opens 2 buy position and when I click on Sell it opens 2 Sell position Best Regards Neda

how to find yesterday AccountEquity

I used below code for equity AccountEquity() now I want to now what is yesterday AccountEquity How I can do it? Best regadrds Neda

how to change text color in Comment

hi every one I use comment to show some text in chart: Comment ( "\n" , "%Risk: " ,Risk , "\n" , "Lot: " ,Lot , "\n" , "ATR: " ,Atr , "\n" , "SL: " ,SL, " pips" , "\n" , "Spread: " ,SL2, " pips" ); I want it shows RISK

how to put limitation for input

hi every one I define an extern in expert: extern int Risk I want user just can insert numbers from 1 up to 3 like 1 1.2 1.3 , ..... 3 and couldn't insert number less than 1 or bigger than 3 How I can do it? Best regards

how to define parameters that users can choose value from DropDownList

hi every one I want to define an extern parameter in an EA and I want put some value on it like: 1 1.1 1.2 1.3 , .... that user can select one of them from DropDownList how I can do it? Best Regards Neda

other parameter like NormalizeDouble()

hi I use NormalizeDouble in MT4 is there other function like NormalizeDouble in MT4? Best Regards Neda

variable in ATR indicator

hi every one below is ATR indicator codes in MT4 //+------------------------------------------------------------------+ //| 1Calculate Lot.mq4 | //| Copyright 2020, MetaQuotes Software Corp. | //|

when 2 moving average line collided

hi every one I define 2 moving average in EA: iMA (Null, 0 , 1 , 0 , MODE_EMA , PRICE_CLOSE , 0 ) iMA (Null, 0 , 50 , 0 , MODE_EMA , PRICE_CLOSE , 0 ) number one with ma_period=1 number two with ma_period=50 I want when these two line collided it shows alert how I can do it? Best regards Neda