This thread has been setup to focus on a more advanced version of the Tokyo EA developed for Geoffb65's "Simple H1 GBPUSD EA" thread:
http://www.forexfactory.com/showthread.php?t=231650
This advanced version of the Tokyo EA allows each of the 3 orders to be specified as either Market, Limit or Stop (trailed). The intention of this flexibility is that it will allow positions to be entered at more favourable prices than market orders alone will allow.
These ideas were suggested by Calstock:
http://www.forexfactory.com/showthre...31650&page=555
and SkyzerFX:
http://www.forexfactory.com/showpost...postcount=8421
It is hoped that participants on this thread will work together to try and find the best combination of parameters to reduce the StopLoss and drawdown requirements of the "Simple H1 GBPUSD EA" while maintaining its current 100% profitability.
Good Luck and may the journey begin...
Piptician
New Parameters vs "Simple H1 GBPUSD EA" (Tokyo17a)
--- TakeProfit, StopLoss and TrailingStop for each position
int TakeProfit1 = 22;
int TakeProfit2 = 50;
int TakeProfit3 = 80;
int StopLoss1 = 140;
int StopLoss2 = 140;
int StopLoss3 = 140;
double TrailingStop1 = 22;
double TrailingStop2 = 22;
double TrailingStop3 = 22;
---- Order types per position M (Market) S (Stop) L (Limit)
string OrderType1 = "M";
string OrderType2 = "M";
string OrderType3 = "M";
---- How far from normal Tokyo entry price the pending orders should be placed
double PendingEntryOffset1 = 20;
double PendingEntryOffset2 = 20;
double PendingEntryOffset3 = 20;
---- How far beyond pending entry offset before placing stop order
double PendingStopEntryDistToOffset1 = 10;
double PendingStopEntryDistToOffset2 = 10;
double PendingStopEntryDistToOffset3 = 10;
---- Max time to wait to place a pending order and pending order expire time
int PendingStopMaxHoursToPlaceOrder = 16;
int PendingOrderExpireHours = 8;
---- SMA slope/order settings
int smaShift = 2;
double slow_smaMinHourlyDiff = 0.0;
double fast_smaMinHourlyDiff = 0.0;
bool checkSMAorder = false;
---- BROKER SETTINGS
bool PendingOrderExpirationAllowed = true;
double TradeWindowSizeHours = 1.0;
---- TRADE TYPES
bool AllowLongs = true;
bool AllowShorts = true;
!!!!! WARNING !!!!
NOTE THAT THE FOLLOWING RECOVERY SETTINGS ARE INTERRELATED. IF YOU MAKE A CHANGE TO ONE SETTING THEN THIS REQUIRES CHANGES TO THE OTHER SETTINGS. IF YOU DO NOT MAKE THE CORRESPONDING CHANGES THEN RECOVERY WILL NOT WORK !!!!!
---- RECOVERY SETTINGS (default 1.3.3.3.3.3)
bool RecoveryEnabled = false;
int RecoveryTakeProfit1 = 100;
int RecoveryTakeProfit2 = 120;
int RecoveryTakeProfit3 = 228;
int RecoveryTakeProfit4 = 333;
int RecoveryTakeProfit5 = 533;
int RecoveryTakeProfit6 = 733;
int TokyoWithRecoveryStopLoss = 1500;
int RecoveryStopLoss1 = 1500;
int RecoveryStopLoss2 = 1500;
int RecoveryStopLoss3 = 1500;
int RecoveryStopLoss4 = 1500;
int RecoveryStopLoss5 = 1500;
int RecoveryStopLoss6 = 1500;
double RecoveryTrailingStop1 = 0;
double RecoveryTrailingStop2 = 0;
double RecoveryTrailingStop3 = 0;
double RecoveryTrailingStop4 = 0;
double RecoveryTrailingStop5 = 0;
double RecoveryTrailingStop6 = 0;
---- RECOVERY ENTRY OFFSETS
double RecoveryPendingEntryOffset1 = 200;
double RecoveryPendingEntryOffset2 = 400;
double RecoveryPendingEntryOffset3 = 600;
double RecoveryPendingEntryOffset4 = 800;
double RecoveryPendingEntryOffset5 = 1000;
double RecoveryPendingEntryOffset6 = 1200;
---- RECOVERY RISK
double RiskPercent1 = 0.67;
double RiskPercent2 = 0.67;
double RiskPercent3 = 0.67;
double RecoveryRiskPercent1 = 2;
double RecoveryRiskPercent2 = 6;
double RecoveryRiskPercent3 = 6;
double RecoveryRiskPercent4 = 6;
double RecoveryRiskPercent5 = 6;
double RecoveryRiskPercent6 = 6;
---- RECOVERY LOTS
double RecoveryLotsize1 = 0.3;
double RecoveryLotsize2 = 0.9;
double RecoveryLotsize3 = 0.9;
double RecoveryLotsize4 = 0.9;
double RecoveryLotsize5 = 0.9;
double RecoveryLotsize6 = 0.9;
This EA is provided for educational purposes only. By downloading and using this EA you do so entirely at your own risk and you are responsible for any losses you may incur from using this EA in live trading.
http://www.forexfactory.com/showthread.php?t=231650
This advanced version of the Tokyo EA allows each of the 3 orders to be specified as either Market, Limit or Stop (trailed). The intention of this flexibility is that it will allow positions to be entered at more favourable prices than market orders alone will allow.
These ideas were suggested by Calstock:
http://www.forexfactory.com/showthre...31650&page=555
and SkyzerFX:
http://www.forexfactory.com/showpost...postcount=8421
It is hoped that participants on this thread will work together to try and find the best combination of parameters to reduce the StopLoss and drawdown requirements of the "Simple H1 GBPUSD EA" while maintaining its current 100% profitability.
Good Luck and may the journey begin...
Piptician
New Parameters vs "Simple H1 GBPUSD EA" (Tokyo17a)
--- TakeProfit, StopLoss and TrailingStop for each position
int TakeProfit1 = 22;
int TakeProfit2 = 50;
int TakeProfit3 = 80;
int StopLoss1 = 140;
int StopLoss2 = 140;
int StopLoss3 = 140;
double TrailingStop1 = 22;
double TrailingStop2 = 22;
double TrailingStop3 = 22;
---- Order types per position M (Market) S (Stop) L (Limit)
string OrderType1 = "M";
string OrderType2 = "M";
string OrderType3 = "M";
---- How far from normal Tokyo entry price the pending orders should be placed
double PendingEntryOffset1 = 20;
double PendingEntryOffset2 = 20;
double PendingEntryOffset3 = 20;
---- How far beyond pending entry offset before placing stop order
double PendingStopEntryDistToOffset1 = 10;
double PendingStopEntryDistToOffset2 = 10;
double PendingStopEntryDistToOffset3 = 10;
---- Max time to wait to place a pending order and pending order expire time
int PendingStopMaxHoursToPlaceOrder = 16;
int PendingOrderExpireHours = 8;
---- SMA slope/order settings
int smaShift = 2;
double slow_smaMinHourlyDiff = 0.0;
double fast_smaMinHourlyDiff = 0.0;
bool checkSMAorder = false;
---- BROKER SETTINGS
bool PendingOrderExpirationAllowed = true;
double TradeWindowSizeHours = 1.0;
---- TRADE TYPES
bool AllowLongs = true;
bool AllowShorts = true;
!!!!! WARNING !!!!
NOTE THAT THE FOLLOWING RECOVERY SETTINGS ARE INTERRELATED. IF YOU MAKE A CHANGE TO ONE SETTING THEN THIS REQUIRES CHANGES TO THE OTHER SETTINGS. IF YOU DO NOT MAKE THE CORRESPONDING CHANGES THEN RECOVERY WILL NOT WORK !!!!!
---- RECOVERY SETTINGS (default 1.3.3.3.3.3)
bool RecoveryEnabled = false;
int RecoveryTakeProfit1 = 100;
int RecoveryTakeProfit2 = 120;
int RecoveryTakeProfit3 = 228;
int RecoveryTakeProfit4 = 333;
int RecoveryTakeProfit5 = 533;
int RecoveryTakeProfit6 = 733;
int TokyoWithRecoveryStopLoss = 1500;
int RecoveryStopLoss1 = 1500;
int RecoveryStopLoss2 = 1500;
int RecoveryStopLoss3 = 1500;
int RecoveryStopLoss4 = 1500;
int RecoveryStopLoss5 = 1500;
int RecoveryStopLoss6 = 1500;
double RecoveryTrailingStop1 = 0;
double RecoveryTrailingStop2 = 0;
double RecoveryTrailingStop3 = 0;
double RecoveryTrailingStop4 = 0;
double RecoveryTrailingStop5 = 0;
double RecoveryTrailingStop6 = 0;
---- RECOVERY ENTRY OFFSETS
double RecoveryPendingEntryOffset1 = 200;
double RecoveryPendingEntryOffset2 = 400;
double RecoveryPendingEntryOffset3 = 600;
double RecoveryPendingEntryOffset4 = 800;
double RecoveryPendingEntryOffset5 = 1000;
double RecoveryPendingEntryOffset6 = 1200;
---- RECOVERY RISK
double RiskPercent1 = 0.67;
double RiskPercent2 = 0.67;
double RiskPercent3 = 0.67;
double RecoveryRiskPercent1 = 2;
double RecoveryRiskPercent2 = 6;
double RecoveryRiskPercent3 = 6;
double RecoveryRiskPercent4 = 6;
double RecoveryRiskPercent5 = 6;
double RecoveryRiskPercent6 = 6;
---- RECOVERY LOTS
double RecoveryLotsize1 = 0.3;
double RecoveryLotsize2 = 0.9;
double RecoveryLotsize3 = 0.9;
double RecoveryLotsize4 = 0.9;
double RecoveryLotsize5 = 0.9;
double RecoveryLotsize6 = 0.9;
This EA is provided for educational purposes only. By downloading and using this EA you do so entirely at your own risk and you are responsible for any losses you may incur from using this EA in live trading.
Attached File(s)
tokyo19_recovery133333_fixedLots.zip
3 KB
|
876 downloads
|
Uploaded Dec 4, 2010 3:32pm
Tokyo_GBPUSD_H1_v19_alpha2_DEMO_USE_ONLY.ex4
140 KB
|
1,091 downloads
|
Uploaded Dec 11, 2010 1:33pm