4/26/2023 0 Comments Void ontimer mql4Switch( Period()) // Calculating coefficient for.Ĭase 1: K2= 5 K3= 15 T= PERIOD_M15 break // Timeframe M1Ĭase 5: K2= 3 K3= 6 T= PERIOD_M30 break // Timeframe M5Ĭase 15: K2= 2 K3= 4 T= PERIOD_H1 break // Timeframe M15Ĭase 30: K2= 2 K3= 8 T= PERIOD_H4 break // Timeframe M30Ĭase 60: K2= 4 K3= 24 T= PERIOD_D1 break // Timeframe H1Ĭase 240: K2= 6 K3= 42 T= PERIOD_W1 break // Timeframe H4Ĭase 1440: K2= 7 K3= 30 T= PERIOD_MN1 break // Timeframe D1Ĭase 10080: K2= 4 K3= 12 break // Timeframe W1Ĭase 43200: K2= 3 K3= 12 break // Timeframe MNĭouble ticksize= MarketInfo( Symbol(), MODE_TICKSIZE) Period_MA_02, Period_MA_03, // Calculation periods of supp. Period_MA_2, Period_MA_3, // Calculation periods of MA for other timefr. - price levels for orders and positions Lts, // Amount of lots in an opened order Lot, Dmax, Dmin, // Amount of lots in a selected order Input double TakeProfit= 50 //TakeProfitĮxtern double Mom_Sell= 0.3 //Momentum_SellĮxtern double Mom_Buy= 0.3 //Momentum_Buy +-+Įxtern bool USEMOVETOBREAKEVEN= true //Enable "no loss"Įxtern double WHENTOMOVETOBE= 10 //When to move break evenĮxtern double PIPSTOMOVESL= 5 //How much pips to move slĮxtern double TrailingStop= 40 //TrailingStopĮxtern int MagicNumber= 1234 //MagicNumber
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |