This strategy works quite well for me trading manually. Problem is markets are not static and always look to find an equilibrium. Cold reality is that the market is always being pushed so what is consider equilibrium today is different tomorrow and how you react changes as well. EA's of today sophistication are not yet capable of reacting in sync.milanese wrote:Thanks, this is normalTraderDesk wrote:Your doing great and I know this is not easy to program.....milanese wrote:thank you , but in reality I shows me that I must learn to read more carefully what traderdesk explains, would be a big saving in time and number of updatesWavegarrick wrote:Watching this thread with great interest. Milanese you are simply suberb!!!!!![]()
Cheers and have a great weekend
TommasoI am just glad that there are awesome people like you who are willing to help when they can....
, for that this place exists, and your strategy has woken my interest, looks really with potential..
Here again, ready for the markets open, an update, I worked again out two changes in code logic, hope now the opening part is near what you wanted..
Cheers
What we can do is created an EA which I consider more of an expert assistant than adviser..
The first step is to create an EA to get us into the trade. That will be the original trade and then additional trades once we are in a trend.
Another step needed is when to get out of the trade. Their are several ways to do this and we will go over that soon enough.
Once we get the EA or EA's working correctly we can start a new thread under Automated trading systems to go into greater detail using the Heiken Ashi strategy...
Whew!!! That said I will set up the conditions for when we should be opening up an original trade as well as additional trades.
I talk about this before but I just want to make sure that the code will work. Below is a chart that shows price action crossing upwards of the HA line. Color was red and now is blue showing price momentum going UP or Bullish. So the setting to buy are the following:
First scenario:
Original Open Position (Cross(Time) Only) -
DelayTheEntryForXBars=
PriceFromHALine=
Now "DelayTheEntryForXBars=" should mean AFTER Price has crossed above the HA line and close above the HA line that would equal 1 bar. Now if I had DelayTheEntryForXBars=3 AND PriceFromHALine=0 I would expect that if Price has stayed ABOVE the HA line after 3 closed bars the EA would automatically open a new position. Since PriceFromHALine=0 is zero the code should not care where the Price is except that it is ABOVE the HA line for the preceding three bars.
Second scenario:
Original Open Position (Cross(Time) AND Price) -
Price Cross HA Line and wait 2 bars. If Price is within 10 pips of the HA line AFTER 2 bar then open Buy Position. So we need to make sure that Price has Crossed the HA line and waited for 2 bars to close DelayTheEntryForXBars=2 THEN PriceFromHALine=10 must be within 10 pips to open NEW position. This is done so if Price is much higher from the HA line then we do not open a new position with a bad R/R... Also if the Price after 2 bars is HIGHER than 10 pips it will not open a NEW position BUT let's say 10 bars later it gets within 10 pips I want the EA to open a NEW position. Remember this is still a NEW position NOT an ADDITIONAL position as no position has been opened since the cross-over. So no matter how many bars closed the original PriceFromHALine=10 applies until the condition is met. Variables included:
DelayTheEntryForXBars=
PriceFromHALine=
This code is just for opening NEW positions via Cross(Time) AND Price. The next post will be about "Additional Positions"...