rogerha wrote: Wed Apr 04, 2018 6:59 pm
Thanks Mntiwana, I actually did 200 trades in demo before going live on small lotsize. No harm has been done because of the lotsize, I have put around 300 trades though the EA until this happened.
There is no author in the code, so this is why I came back to you
Brother
Are you using martingale part trading or only buy/sell according to indicator signaling
you must read and understand exact code explanations in details
"
extern string MoneyManagement = "===== MONEY MANAGEMENT =====";
extern double Lots = 0.01; // Lot size
//When MM_Risk is disabled: use lot size.
extern string MM_Risk = "----- Risk Money Management -----";
extern bool UseMoneyManagementRisk = false;
extern double RiskAB = 15; // Risk is % of account balance to risk per sequence
//When MM_Martingale is active: value of initial lot.
extern string MM_Martingale = "----- Martingale -----";
extern bool UseMartingale_Loss = false;
extern double LotsMultiplier_Loss = 2.0; // Multiplication factor of lot per each lost operation.
// When Risk and MM_Martingale are both disabled: fixed lot size.
// If MM_Risk is active, never can be active MM_Martingale and viceversa (if MM_Martingale is active, never can be active MM_Risk).
extern string OrderSettings = "===== ORDER SETTINGS =====";
// The order always are stop pending orders
// To the buy orders, it calculates from High of the candle of the signal
// To the sell orders, it calculates from Low of the candle of the signal
// The orders expire when are not executed and the indicator show another new signal
extern int MaxOrders = 1; // Max Number of orders Pending.
extern double OrderDistanceBuyPips = 3; // Distance in points from: High(Pending)
extern double OrderDistanceSellPips = 3; // Distance in points from: Low(Pending)
extern bool OnlyBuyMode = true; // Only Buy Mode switch
extern bool OnlySellMode = true; // Only Sell Mode switch
extern string ExitSettings = "===== EXIT SETTINGS =====";
extern bool CloseOnTrendChange = false; // Close position by change of indicator signal
//###################################################################################################################################
// IF THERE IS AN OPEN ACTIVE ORDER AND APPEAR A NEW ONE FROM THE INDICATOR, THE NEW SIGNAL WILL BE PROCESSED WITH THE FOLLOW METHOD:
// When CloseOnTrendChange = false
// 1- Exist an active order
// 2- The signal don't touch Take Profit or Stop Loss (is still active)
// 3- If there is a new signal,it waits until the price close at Take Profit or Stop Loss
// 4- Once the signal will be closed, the sistem will be waiting for the next signal
// When CloseOnTrendChange = true
// 1- Exist an active order
// 2- The signal don't touch Take Profit or Stop Loss (is still active)
// 3- If there is a new signal from the indicator, the active order automatically will be closed. It will be closed on the same price
//of the close candle of the new signal (I mean, when the bar of the new signal closes)
// 4- It will lunch a new pending stop order at the same candle
//#################################################################################
extern string ControlBuy = "===== CONTROL BUY =====";
extern double TakeProfitPipsBuy = 20;
extern double StopLossPipsBuy = 20;
extern bool HideBuyTP_SL = false; // Hidden TakeProfit And StopLoss Mode
extern bool UseBreakEvenBuy = false; // If BreakEven is active, TrailingStop can't be active
extern double MoveToBreakEveAtPipsBuy = 12; // When the price moves to X benefit in pips move SL to BE
extern double MoveToBreakEvenLockPipsBuy = 5; // When the price is BreakEven +/- x pips, move SL to BE
extern bool UseTrailingStopBuy = false; // If the TrailingStop is active, Breakeven can't be active.
extern double TrailingStopBuy = 10;
extern double TrailingStepBuy = 5;
extern string ControlSell = "===== CONTROL SELL =====";
extern double TakeProfitPipsSell = 20;
extern double StopLossPipsSell = 20;
extern bool HideSellTP_SL = false; // Hidden TakeProfit And StopLoss Mode
extern bool UseBreakEvenSell = false; // If BreakEven is active, TrailingStop can't be active
extern double MoveToBreakEveAtPipsSell = 12; // When the price moves to X benefit in pips move SL to BE
extern double MoveToBreakEvenLockPipsSell = 5; // When the price is BreakEven +/- x pips, move SL to BE
extern bool UseTrailingStopSell = false; // If the TrailingStop is active, Breakeven can't be active.
extern double TrailingStopSell = 10;
extern double TrailingStepSell = 5;
//########################################################################################
"