stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

FirstStrike Plus – Weekly Volatility Breakout
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3946
Page 1 of 12
Author:  milanese [ Fri Nov 21, 2014 12:00 am ]
Post subject:  FirstStrike Plus – Weekly Volatility Breakout

[mod=]
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:
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
Attached you will find too the PDF file vesko had posted..

***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 0
VolaMultiplicatorForEntry=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 viceversa
other 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 direction
MaxOpenPositionsBuy=5
MaxOpenPositionsSell=5
these two are for limiting the max possible open positions
MinProfitForClose=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;
After a PairBasketClosure the EA will delete the eventual resting pending order(s) and restart next week with trading.
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;
Note: OOTB ATR automatic calculations are used.
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
FirstStrikeWeeklyBO_M.mq4
FirstStrikeWeeklyBO_M.ex4
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.

FirstStrike_Plus.pdf
Cheers :)

Tommaso
Author:  milanese [ Sat Nov 22, 2014 9:12 am ]
Post subject:  FirstStrike Plus – Weekly Volatility Breakout

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
Hi Vesko,

I will later code your EA..

Cheers :)

Tommaso
Author:  milanese [ Sun Nov 23, 2014 11:58 am ]
Post subject:  [Update!]FirstStrike Plus – Weekly Volatility Breakout

Hi,

I did an important change in the EA, for making it more secure in executing the orders with the latest Empty4 build and I added a new input
VolaMultiplicatorForEntry=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 viceversa

So please all redownload the EA here http://www.stevehopwoodforex.com/phpBB3 ... 04#p104504

Cheers :)

Tommaso
Author:  bazze [ Sun Nov 23, 2014 1:52 pm ]
Post subject:  FirstStrike Plus – Weekly Volatility Breakout

Thank you,Tommaso :good: ...Will try it this week...
Author:  milanese [ Tue Nov 25, 2014 10:16 am ]
Post subject:  [updated EA]FirstStrike Plus – Weekly Volatility Breakout

For all interested in this EA:

I did some updates after some forward testing with the EA, now the EA should run as intended..
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.
You find the EA in this post http://www.stevehopwoodforex.com/phpBB3 ... 04#p104504

Cheers :)

Tommaso
Author:  cace2004 [ Wed Nov 26, 2014 1:40 am ]
Post subject:  [updated EA]FirstStrike Plus – Weekly Volatility Breakout

milanese » Tue Nov 25, 2014 5:16 am wrote:For all interested in this EA:

I did some updates after some forward testing with the EA, now the EA should run as intended..
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.
You find the EA in this post http://www.stevehopwoodforex.com/phpBB3 ... 04#p104504

Cheers :)

Tommaso
Hi Tommaso!

How are you? I was reading this thread and was wondering if you would be interested in coding another weekly strategy. It's very simple. Basically put both buy and sell pending orders 50 pips away away from the weekly open price (some people trade the last week's close), and 30 stoploss. Here is the link to the strategy:

http://www.forexfactory.com/showthread.php?t=11937

It was backed by a good trader(TheRealThing). I also eyeballed a few month's data and it looks very profitable. You may check the attached word document for more information. Thank you very much for all your efforts on this great forum.

Shawn
Author:  milanese [ Wed Nov 26, 2014 8:50 am ]
Post subject:  [updated EA]FirstStrike Plus – Weekly Volatility Breakout

cace2004 » Wed Nov 26, 2014 1:40 am wrote:
Hi Tommaso!

How are you? I was reading this thread and was wondering if you would be interested in coding another weekly strategy. It's very simple. Basically put both buy and sell pending orders 50 pips away away from the weekly open price (some people trade the last week's close), and 30 stoploss. Here is the link to the strategy:

http://www.forexfactory.com/showthread.php?t=11937

It was backed by a good trader(TheRealThing). I also eyeballed a few month's data and it looks very profitable. You may check the attached word document for more information. Thank you very much for all your efforts on this great forum.

Shawn
I will later code your EA request..

Cheers :)

Tommaso
Author:  milanese [ Wed Nov 26, 2014 10:36 am ]
Post subject:  [updated EA]FirstStrike Plus – Weekly Volatility Breakout

milanese » Wed Nov 26, 2014 8:50 am wrote:
cace2004 » Wed Nov 26, 2014 1:40 am wrote:
Hi Tommaso!

How are you? I was reading this thread and was wondering if you would be interested in coding another weekly strategy. It's very simple. Basically put both buy and sell pending orders 50 pips away away from the weekly open price (some people trade the last week's close), and 30 stoploss. Here is the link to the strategy:

http://www.forexfactory.com/showthread.php?t=11937

It was backed by a good trader(TheRealThing). I also eyeballed a few month's data and it looks very profitable. You may check the attached word document for more information. Thank you very much for all your efforts on this great forum.

Shawn
I will later code your EA request..

Cheers :)

Tommaso
Find your EA here http://www.stevehopwoodforex.com/phpBB3 ... f=5&t=3955

Cheers :)

Tommaso
Author:  ace81 [ Sun Dec 14, 2014 2:52 am ]
Post subject:  FirstStrike Plus – Weekly Volatility Breakout

Below are the results running OOTB till now
Seems good :smile:

Thanks Tomasso :good:
Author:  milanese [ Sun Dec 14, 2014 7:56 am ]
Post subject:  FirstStrike Plus – Weekly Volatility Breakout

ace81 » Sun Dec 14, 2014 2:52 am wrote:Below are the results running OOTB till now
Seems good :smile:

Thanks Tomasso :good:
Thanks for posting your results, looking really nice so far!
I moved this topic know here in the automatic trading systems, maybe so the EA finds some more attention..

Cheers :)

Tommaso
All times are UTC Page 1 of 12