Please or Register to create posts and topics.

PARAMETERS

PairsForTrading=EURGBP;EURAUD;EURNZD;EURUSD;EURCAD …. etc up to 28 FX pairs ( XAUUSD, us500, nasdaq, dax and any other indices/commodities/shares can be used in this parameter (!) but only with indicators that builtin EA for 1 pair (please do not use IndexAll indicator at dax). . It can be entered like this: EURGBP;EURAUD;EURNZD;Dax;XAUUSD and like this with space separator: EURGBP ; EURAUD ; EURNZD ; Dax ; XAUUSD

Robot can work from 1 chart at all pairs ! [1-28] but its not nessesary to use all 28.  You may enter from 1 up to 28 pairs and each pair will share the same EA settings. Please input all required pairs and separate them using symbol [ ; ] as above, and at the end of last pair do not input anything. Add also Suffix for your pairs if broker have them: EURUSDx;GBPUSDx; or EURUSD.m;GBPUSD.m;…Before use some pairs - open all pairs in Market Watch of MT4 and chek - does your pairs tradabe or not (try to put little pending order at less. Sometimes Broker have EURUSD and EURUSDm at one account). If you wish to trade any pairs with separate EA settings then open a separate chart and enter alternative settings as required.

In strategy Tester of MT4 please use Only 1 Pair in this parameter and use 1 pair Indicator types of entry! MT4 tester cannot open orders in Tester more then at 1 pair !!! MT4 tester cannot analyse Mutipair indicators!!! Dont try to run multipair IndexAll entry or multipair robots in tester of MT4 –  you will have ZeroDivide Error! (Multi-pair Tester Metaquotes coded only in MT5). In version v3.1.4.0 to use signal Index_all need to entry all 28 pairs in PairsForTrading parameter (indicator use all 28 pairs to build 8 indexes and signals) there you can copy 28 pairs if need :

EURGBP ; EURAUD ; EURNZD ; EURUSD ; EURCAD ; EURCHF ; EURJPY ; GBPAUD ; GBPNZD ; GBPUSD ; GBPCAD ; GBPCHF ; GBPJPY ; AUDNZD ; AUDUSD ; AUDCAD ; AUDCHF ; AUDJPY ; NZDUSD ; NZDCAD ; NZDCHF ; NZDJPY ; USDCAD ; USDCHF ; USDJPY ; CADCHF ; CHFJPY ; CADJPY

LoadHistoricalData = True // If True - it will update once per 1 bar (where you installed/attached EA) your all MarketWatch pairs tick data and all TimeFrames  automatically for correct indicators work and calculations. Also EA will do same first time when you attach it on chart (patience – it can take up to 5 minutes and will not open any trades until will not finish it process )

TimeStartEnd = True // Use Trading Time Filter – Yes/No
HourStart
 = 0; // Time for EA start work if all orders are Closed before that time
HourEnd = 20 // Time to Finish trading Today and Close any possible little profit and all orders at account at that time if CurrentEquity>StartDepo (or Depo0 in GlobalVariables) balance when EA started New Last Serial. If you entry HourStart=8 and HourEnd=20 (by your broker server time) it means EA will trade between this time and try to reach MaxEquityProfit MANY TIMES ! If after HourEnd=20 robot see that at account Equity StartDepo(Depo0) – robot will Close all orders at account to fix even Little Profit Today and Depo0 EA will rewrite to Current balance! If You dont like to use new Daily Time of trading! Make like this: HourStart=0 and HourEnd=25 (its impossible parameters). This parameter sometimes not work good in different GMT time zones (make errors sometimes - better test it first at Demo)

VisualButton = True // show control panel buttons Yes/No. This software is designed not only for Automated trading type but also to perform in semi-automated mode for bigger profit (user control and help EA from time to time, i.e. close current profits reached, add trend orders in hedge of global direction, additional pending orders for News trading across the price, change temporary Equity Targets to start OverLap function … etc) . TurnOff this parameter in Tester and Optimisation – Ea will work faster, also TurnOff if you work in Total Automated mode

NoNewTrade = False // if True – after EA reach Target Equity and close all orders at Account (including your manual and other EAs orders) EA will not open any new order and serials in any direction. But if Before EA reaching target yet – and EA have existed serials it can open new grid orders in serials to try reach target equity and will not open any new Serials (Start orders of new Serial). This parameter for thous who need only daily target+ EA Stop and do not start new Serials today. To make EA working one more cycle and reach new TargetEquity just make NoNewTrade = False (EA Start to trade) and after EA just opened orders – you can make again NoNewTrade = True if you like EA Stopped after its reached Target Equity (at same time you can control EquityTarget % from EA buttons if you like). If activate this parameter in True – so EA not entry at NEW PAIRS even if signal coming, its only continue work at existed pairs that have already orders to finish current serial till TargetEquity, or EA will use LastTp (or TrailingStop) at every order if all orders goes profit…

TradeBuy = True // if False – EA will not open any Buy order at any pair

PairsOnlyTradeBuy
= EURUSD ; GBPUSD; NZDUSD // enter there pairs that you would like to trade only Buy (enter also this pairs in 1st parameter called PairsForTrading. All Signals Must be OFF to use this option of separate SELL and BUY direction in 1 Set at all pairs)

TradeSell = True // if False – EA will not open any sell order at any pair

PairsOnlyTradeSell
= EURJPY ; GBPJPY; CADJPY //enter there pairs that you would like to trade only Sell (enter also this pairs in 1st parameter called PairsForTrading. All Signals Must be OFF to use this option of separate SELL and BUY direction in 1 Set at all pairs)

NewSerialBuy = True // if False – EA will not open new buy Grid serial trades. It will finish any/all existing buy serial trades

NewSerialSell = True // if False – EA will not open new sell Grid serial trades. It will finish any/all existing sell serial trades

NewLevelBuy = True // if False – no new grid level in buy series (level = Next Grid order in Grid serial, example of 4 levels of 1 grid series : 0.01 0.02 0.03 0.04)

NewLevelSell = true // if False – no new grid level in sell series

RISK & LOT SIZE 

StartLot = 0.0 // Use in Default 0 . EA dedicate Minimal Start lot of any broker automatically

ReverseStartLot = False // multiplier for only first (start) level of the grid based at Hedge % from opposite serial. It can effect also next grid levels after reversed order in his serial, all lot multiplier will use this order lots to calculate next levels in same direction. Example: EA have 0.1+ 0.1+ 0.1+ 0.2+ 0.3+ 0.4 (sum total 1.2 lot) already opened in Sell direction and will try to open reverse start order in buy using the settings of CoefReverseStartLot below; (he have no buy orders yet) with CoefReveseStartLot = 0.3 (means 30% from 1.2 of sell sum lots) 0.3*1.2= 0.3 lots will be start lot of buy serial. After this ea will continue buy serial like this 0.3 0.3 0.3 0.5 0.7…means it will effect at next orders – they will be bigger than opposite sell serial levels 

CoefReverseStratLot = 0.3 // portion of reverse start lot (in 1st grid level only). If sum sell lots at 1 pair = 1.5 lots EA will try to open in start lot of buy serial 30% from 1.5 sell lots : 1.5*0.3=0.5 lots is a start order of buy grid serial

FirstLotExp = 1.0 // [1.0-3.0] multiplier only for 1st level of grid that not effect next levels. If FirstLotExp=2 then EA will use multiplier only for 1st level of grid 0.2 0.1 0.1…and will not effect next grid levels. if FirstLotExp=2.5 then ea will open 0.25 0.1 0.1…(that change only 1st start order of serial and all next calculation in serial think that nothing happened)

Risk = 0.01  // Use 1 time parameter to trade same Risk at all pairs in one Set. To use separate Risks at different pairs in one set entry separate Risks using comma 0.01;0.02;0.01;0.05 …. The number and order of risks should correspond to the number of pairs that you entered in the PairsForTrading parameter. This EA coded for default balance = 10 000 (Cents or Standard account). Examples of using different risk and start orders of grid serial:
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.001 | Grid Start Order = 0.01 lot
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.02   | Grid Start Order = 0.02 lot 
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.22   | Grid Start Order = 0.22 lot
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 20 000 | Risk = 0.03   | Grid Start Order = 0.06 lot (because 20000/10000=2 and 2*0.03=0.06) 

Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.001 | Grid Start Order = 0.1 lot (because EA dedicate MinLot of Broker automatically - learn parameter StartLot = 0.0)
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.01 | Grid Start Order = 0.1 lot (again because of parameter StartLot = 0.0)
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.10 | Grid Start Order = 0.1 lot
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 30 000 | Risk = 0.11 | Grid Start Order = 0.33 lot

MaxLotRisk = 20.0 // this is max lot that EA can use in Grid serial at one level. Calculation based at 10 000 balance and EA will grow MaxLotRisk if your balance also grow. If your balance grows to 20 000 from 10 000 the EA will understand that 20 max lot was for 10 000 and will automatically adjust this setting for 20 000, it will hold MaxLotRisk=40 (as double from MaxLotRisk=20 because start deposit doubled also from 10 000 to 20 000). No need to change it manually from 20 to 40. More balance – mоre MaxLotRisk EA can use based at proportion of 10 000 balance. this is why its called MaxLotRisk – based at risk calculation with current balance in proportion from 10 000 Balance:
Examples when during trading MaxLotRisk same but MaxLot that EA can use grow with current balance:
If MaxLotRisk=10
Balance=10 000 | MaxLot that EA can use=10 >>> Balance=20 000 | MaxLot that EA can use=20 >>> Balance=25 000 | MaxLot that EA can use=25

MaxTrades = 15 // [1-30] how many levels of grid the EA can open in 1 direction at 1 pair. If = 15 it means the EA can open up to 15 sell and 15 buy grid levels per pair (total 30 per 1 pair, no more)

Explain more about Snake in Parameters Text like this: 

 it will make trades Always from MA to Snake

If Yellow = MA . and White is Snake - it will trade from MA to Snake (From Yellow to White)

MA follow Snake

No metter Closed bar or it crossed

ALWAYS

Uploaded files:
  • photo_2020-08-04_11-34-27.jpg

UseNewBar = true // only 1 trade per period where you attached EA (if you attached ea at m15 ea will open not more 1 grid order per 1 m15 bar) 

 

also need describe :

MethodClosePos = 1 or 2 //1- Close first Biggest Loss order then Biggest Profit order and etc step by step by orders pairs -+ -+ -+ -+... (lots of orders reached Target) ; 2-Close first Biggest Profit order then Biggest Loss order and etc step by step by orders pairs +- +- +- +- ...(lots of orders reached Target) 

Pause = 1 // in minutes between any operation in EA

Hi Alex,

I am testing "NoNewTrade=True". In the explanation is stated that: If activate this parameter in True – so EA not entry at NEW PAIRS even if signal coming, its only continue work at existed pairs that have already orders to finish current serial till TargetEquity, or EA will use LastTp (or TrailingStop) at every order if all orders goes profit… 

I activated the EA MPGO with 27 pairs and "NoNewTrade=True" yesterday afternoon. 4 pairs are closed for trading upto now (no first trade of a new serial/grid has been opened for that pairs), but is seems to be that als fo two others pairs a new grid has been openend. How is that possible?

Kind regards, Arjun

Quote from Support@fxpip.one on 30/07/2020, 20:33

PairsForTrading=EURGBP;EURAUD;EURNZD;EURUSD;EURCAD …. etc up to 28 FX pairs ( XAUUSD, us500, nasdaq, dax and any other indices/commodities/shares can be used in this parameter (!) but only with indicators that builtin EA for 1 pair (please do not use IndexAll indicator at dax). . It can be entered like this: EURGBP;EURAUD;EURNZD;Dax;XAUUSD and like this with space separator: EURGBP ; EURAUD ; EURNZD ; Dax ; XAUUSD

Robot can work from 1 chart at all pairs ! [1-28] but its not nessesary to use all 28.  You may enter from 1 up to 28 pairs and each pair will share the same EA settings. Please input all required pairs and separate them using symbol [ ; ] as above, and at the end of last pair do not input anything. Add also Suffix for your pairs if broker have them: EURUSDx;GBPUSDx; or EURUSD.m;GBPUSD.m;…Before use some pairs - open all pairs in Market Watch of MT4 and chek - does your pairs tradabe or not (try to put little pending order at less. Sometimes Broker have EURUSD and EURUSDm at one account). If you wish to trade any pairs with separate EA settings then open a separate chart and enter alternative settings as required.

In strategy Tester of MT4 please use Only 1 Pair in this parameter and use 1 pair Indicator types of entry! MT4 tester cannot open orders in Tester more then at 1 pair !!! MT4 tester cannot analyse Mutipair indicators!!! Dont try to run multipair IndexAll entry or multipair robots in tester of MT4 –  you will have ZeroDivide Error! (Multi-pair Tester Metaquotes coded only in MT5). In version v3.1.4.0 to use signal Index_all need to entry all 28 pairs in PairsForTrading parameter (indicator use all 28 pairs to build 8 indexes and signals) there you can copy 28 pairs if need :

EURGBP ; EURAUD ; EURNZD ; EURUSD ; EURCAD ; EURCHF ; EURJPY ; GBPAUD ; GBPNZD ; GBPUSD ; GBPCAD ; GBPCHF ; GBPJPY ; AUDNZD ; AUDUSD ; AUDCAD ; AUDCHF ; AUDJPY ; NZDUSD ; NZDCAD ; NZDCHF ; NZDJPY ; USDCAD ; USDCHF ; USDJPY ; CADCHF ; CHFJPY ; CADJPY

LoadHistoricalData = True // If True - it will update once per 1 bar (where you installed/attached EA) your all MarketWatch pairs tick data and all TimeFrames  automatically for correct indicators work and calculations. Also EA will do same first time when you attach it on chart (patience – it can take up to 5 minutes and will not open any trades until will not finish it process )

TimeStartEnd = True // Use Trading Time Filter – Yes/No
HourStart
 = 0; // Time for EA start work if all orders are Closed before that time
HourEnd = 20 // Time to Finish trading Today and Close any possible little profit and all orders at account at that time if CurrentEquity>StartDepo (or Depo0 in GlobalVariables) balance when EA started New Last Serial. If you entry HourStart=8 and HourEnd=20 (by your broker server time) it means EA will trade between this time and try to reach MaxEquityProfit MANY TIMES ! If after HourEnd=20 robot see that at account Equity StartDepo(Depo0) – robot will Close all orders at account to fix even Little Profit Today and Depo0 EA will rewrite to Current balance! If You dont like to use new Daily Time of trading! Make like this: HourStart=0 and HourEnd=25 (its impossible parameters). This parameter sometimes not work good in different GMT time zones (make errors sometimes - better test it first at Demo)

VisualButton = True // show control panel buttons Yes/No. This software is designed not only for Automated trading type but also to perform in semi-automated mode for bigger profit (user control and help EA from time to time, i.e. close current profits reached, add trend orders in hedge of global direction, additional pending orders for News trading across the price, change temporary Equity Targets to start OverLap function … etc) . TurnOff this parameter in Tester and Optimisation – Ea will work faster, also TurnOff if you work in Total Automated mode

NoNewTrade = False // if True – after EA reach Target Equity and close all orders at Account (including your manual and other EAs orders) EA will not open any new order and serials in any direction. But if Before EA reaching target yet – and EA have existed serials it can open new grid orders in serials to try reach target equity and will not open any new Serials (Start orders of new Serial). This parameter for thous who need only daily target+ EA Stop and do not start new Serials today. To make EA working one more cycle and reach new TargetEquity just make NoNewTrade = False (EA Start to trade) and after EA just opened orders – you can make again NoNewTrade = True if you like EA Stopped after its reached Target Equity (at same time you can control EquityTarget % from EA buttons if you like). If activate this parameter in True – so EA not entry at NEW PAIRS even if signal coming, its only continue work at existed pairs that have already orders to finish current serial till TargetEquity, or EA will use LastTp (or TrailingStop) at every order if all orders goes profit…

TradeBuy = True // if False – EA will not open any Buy order at any pair

PairsOnlyTradeBuy
= EURUSD ; GBPUSD; NZDUSD // enter there pairs that you would like to trade only Buy (enter also this pairs in 1st parameter called PairsForTrading. All Signals Must be OFF to use this option of separate SELL and BUY direction in 1 Set at all pairs)

TradeSell = True // if False – EA will not open any sell order at any pair

PairsOnlyTradeSell
= EURJPY ; GBPJPY; CADJPY //enter there pairs that you would like to trade only Sell (enter also this pairs in 1st parameter called PairsForTrading. All Signals Must be OFF to use this option of separate SELL and BUY direction in 1 Set at all pairs)

NewSerialBuy = True // if False – EA will not open new buy Grid serial trades. It will finish any/all existing buy serial trades

NewSerialSell = True // if False – EA will not open new sell Grid serial trades. It will finish any/all existing sell serial trades

NewLevelBuy = True // if False – no new grid level in buy series (level = Next Grid order in Grid serial, example of 4 levels of 1 grid series : 0.01 0.02 0.03 0.04)

NewLevelSell = true // if False – no new grid level in sell series

RISK & LOT SIZE 

StartLot = 0.0 // Use in Default 0 . EA dedicate Minimal Start lot of any broker automatically

ReverseStartLot = False // multiplier for only first (start) level of the grid based at Hedge % from opposite serial. It can effect also next grid levels after reversed order in his serial, all lot multiplier will use this order lots to calculate next levels in same direction. Example: EA have 0.1+ 0.1+ 0.1+ 0.2+ 0.3+ 0.4 (sum total 1.2 lot) already opened in Sell direction and will try to open reverse start order in buy using the settings of CoefReverseStartLot below; (he have no buy orders yet) with CoefReveseStartLot = 0.3 (means 30% from 1.2 of sell sum lots) 0.3*1.2= 0.3 lots will be start lot of buy serial. After this ea will continue buy serial like this 0.3 0.3 0.3 0.5 0.7…means it will effect at next orders – they will be bigger than opposite sell serial levels 

CoefReverseStratLot = 0.3 // portion of reverse start lot (in 1st grid level only). If sum sell lots at 1 pair = 1.5 lots EA will try to open in start lot of buy serial 30% from 1.5 sell lots : 1.5*0.3=0.5 lots is a start order of buy grid serial

FirstLotExp = 1.0 // [1.0-3.0] multiplier only for 1st level of grid that not effect next levels. If FirstLotExp=2 then EA will use multiplier only for 1st level of grid 0.2 0.1 0.1…and will not effect next grid levels. if FirstLotExp=2.5 then ea will open 0.25 0.1 0.1…(that change only 1st start order of serial and all next calculation in serial think that nothing happened)

Risk = 0.01  // Use 1 time parameter to trade same Risk at all pairs in one Set. To use separate Risks at different pairs in one set entry separate Risks using comma 0.01;0.02;0.01;0.05 …. The number and order of risks should correspond to the number of pairs that you entered in the PairsForTrading parameter. This EA coded for default balance = 10 000 (Cents or Standard account). Examples of using different risk and start orders of grid serial:
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.001 | Grid Start Order = 0.01 lot
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.02   | Grid Start Order = 0.02 lot 
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 10 000 | Risk = 0.22   | Grid Start Order = 0.22 lot
Standard or ECN Account (min lot of Broker = 0.01) | Balance = 20 000 | Risk = 0.03   | Grid Start Order = 0.06 lot (because 20000/10000=2 and 2*0.03=0.06) 

Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.001 | Grid Start Order = 0.1 lot (because EA dedicate MinLot of Broker automatically - learn parameter StartLot = 0.0)
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.01 | Grid Start Order = 0.1 lot (again because of parameter StartLot = 0.0)
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 10 000 | Risk = 0.10 | Grid Start Order = 0.1 lot
Roboforex Cent Account (min lot of Broker = 0.1) | Balance = 30 000 | Risk = 0.11 | Grid Start Order = 0.33 lot

MaxLotRisk = 20.0 // this is max lot that EA can use in Grid serial at one level. Calculation based at 10 000 balance and EA will grow MaxLotRisk if your balance also grow. If your balance grows to 20 000 from 10 000 the EA will understand that 20 max lot was for 10 000 and will automatically adjust this setting for 20 000, it will hold MaxLotRisk=40 (as double from MaxLotRisk=20 because start deposit doubled also from 10 000 to 20 000). No need to change it manually from 20 to 40. More balance – mоre MaxLotRisk EA can use based at proportion of 10 000 balance. this is why its called MaxLotRisk – based at risk calculation with current balance in proportion from 10 000 Balance:
Examples when during trading MaxLotRisk same but MaxLot that EA can use grow with current balance:
If MaxLotRisk=10
Balance=10 000 | MaxLot that EA can use=10 >>> Balance=20 000 | MaxLot that EA can use=20 >>> Balance=25 000 | MaxLot that EA can use=25

MaxTrades = 15 // [1-30] how many levels of grid the EA can open in 1 direction at 1 pair. If = 15 it means the EA can open up to 15 sell and 15 buy grid levels per pair (total 30 per 1 pair, no more)