Forum

help on a High-Low Routine

Hello. I want help about a problem on a High-Low Routine. I have write the following one that works excellent on MQL5: bool FindHighLow( string Pair, int Periods) { double PHigh[], PLow[]; ArrayResize (PHigh, Periods); ArrayResize (PLow, Periods); if ( CopyHigh (Pair, PERIOD_M1 , 1

Help about MA of another MA!

Hello. Pls if somebody can help me: On MQL5 we use handles and we can calculate an MA of another MA: //set handler for used indicators emaA = iMA ( NULL , MA_TF, EmaPeriod1, 0 , MODE_EMA , PRICE_WEIGHTED ); emaA2 = iMA ( NULL , MA_TF, EmaPeriod2, 0 , MODE_EMA , emaA); On MQL4 i try this

Stop running EA on invalid inputs (Especialy on tester)

Hello. How can i stop ea (don't lose time for testing) if an invalid input has placed??? Example: I use (for testing) for a macd a range of fastema 8-18 and for slowema 14-24. I don't want test the combinations that fastema>=slowema (14-14, 16-14, 18-14, 16-16, 16-18, 18-18). I think place [OnInit]

How can i Deposit/Withdraw Demo MT5 Account?

Hello, How can i Deposit/Withdraw Demo MT5 Account (if it is posible)? If it's not posible what can i do if my "demo money" drawdown? Open new demo acccount?? Thanks

Take Price on any tick!!

This is a stupid question but i can't find it: Who can i take the " every tick " price in a EA? What is the variable exactly that include this price? Thank you and i'm sorry for this stupid question