SERIOUS WARNING
Most Forex traders lose all their money. ***DO NOT USE THIS EA ON LIVE ACCOUNTS AS IT IS EXPERIMENTAL***
-Using the robot posted here in trading Forex does not guarantee success.
-Trading this robot could lead to serious financial loss.
-Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
-This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
-At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
-To trade this robot, you have to understand:
-How to use EA's.
-Market trend and retracement patterns.[/mod]
I coded this EA based on this request:
Attached you will find too the PDF file vesko had posted..Vesko » Sat Nov 22, 2014 8:22 am wrote:Hi everybody,
I have attached a PDF file with this simple strategy. And I hope will take attention to good coders from this forum to try to implement EA.
Best Regards
Vesko
***NEVER CHANGE THE TIMEFRAME ON THE CHART YOU HAVE ATTACHED THE EA***
The EA uses hidden pending orders, for avoiding to enter in spread spikes ecc, you see the pending prices with the two lines drawn on the chart
VolaMultiplicatorForSL=0.1 this is the Volatilymultiplicator for the SL, not if weeklyHigh and Low are 100 pips distant the SL would only be 10 points for the position, so feel free to play with this value.minVolaLastWeekForSettingPendings=125 I did this input for avoiding trades in to flat weekly ranges, if you want to deactivate it just set the value to 0VolaMultiplicatorForEntry=0.3 with this input you can try too other multiplicator settings for the setting the pending lines, the OOTB one (0.3) will set if weeklyHigh and Low are 100 pips distant the buy entry 33 pips over the open and viceversaother inputs:
AllowHeding=true as some US broker do not allow hedging or if you don't like it just set this to false and the EA will only open trades in one directionMaxOpenPositionsBuy=5
MaxOpenPositionsSell=5 these two are for limiting the max possible open positionsMinProfitForClose=1 to set the min Profit in your Account Currency to close the trade, trades are only closed in the next weekly bar after the trade was taken or later when they go in profit (like the rule is)EA updatet 29 dic, 2014
The new version will remember the last Pendings calculated and restore them, just in case you had to restart Empty4, or the EA was with an other reason reintialized, so this version is much easier to handle.
EA updated 23 jan,2015
Some fixes, now the SL will be set correct after restoring orders, if the EA is new initialized. Ordersend function with more security features, error 130 will now never occur as there are many checks if a sl/tp is valid and if not it will be autocorrected. New feature
MaxProfitForClose (in account currency) if the profit is higher the EA will not autoclose in the week after the order is opened, but the sl will be moved with the profit. Note the OOTB is new it reflects my setting how I use the EA.Update march 31,2015
AGT had the idea that function that lets the EA close all open positions if a certain profit reached maybe could give better results. As I liked the idea I embedded this function in the EA and did some cosmetic updates to my latest EA look..
this are the new inputs
Code: Select all
extern string CloseAllProfitSet1="---Set this to true to close all EA positions----";
extern string CloseAllProfitSet2="---if Profit reaches CloseAllOfPairInProfit----";
extern bool UseCloseAllOfPairInProfit=true;
extern string CloseAllProfitSet3="---enter here the amount in account Currency----";
extern double CloseAllOfPairInProfit=100;Note the EA counts only its own trades on the specific pair.
update may 23, 2015
As requested the FS-EA has new the possibility to use the volatilty for the SL movements in win
here are some new inputs to find:
Code: Select all
extern string atrSet="---setting ATR calc for true overrides SLMinDistanceToPrice value----";
extern bool useATRForSLMinDistanceToPrice=true;
extern int atrForSLMinDistanceToPriceTF=PERIOD_H4;
extern double atrMultiplicatorForSLMinDistanceToPrice=1.1;
extern int atrPeriodForSLMinDistanceToPrice=14;
extern double SLMinDistanceToPrice=45;I recommend to use 0.01 lot per USD 1000 free equity on account, not more
update june 1, 2015
some cosmetic update showing now the lastWeekVola and the week before in the userdisplay, userdisplay updated to the actual design of my EA's If you use the FS-EA on more than one pair the SAPBTM can be very usefull you find this TM there ---click-->
http://www.stevehopwoodforex.com/phpBB3 ... =21&t=4081
Please note EA will only monday set pending-orders, if the pending-orders would be to near, the EA will wait for the right distance for set them, you will get an alert for this.
Cheers
Tommaso