Cheers
Tommaso
It now opens a position immediately when I apply the EA....milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..
Cheers
Tommaso
this can happen because it checks every tick and initializing process could cause that it opens immediatly..that was why I had before made always versions that handle only closed candels..TraderDesk wrote:It now opens a position immediately when I apply the EA....milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..
Cheers
Tommaso
I see now....Well I guess we can get to that later... It feels like the EA is getting more responsive but I still see it opening positions after only 2 bars when I have it set for 4. Take a look at the chart and settings to see if that is what you see as well...milanese wrote:this can happen because it checks every tick and initializing process could cause that it opens immediatly..that was why I had before made always versions that handle only closed candels..TraderDesk wrote:It now opens a position immediately when I apply the EA....milanese wrote:Ok I removed some part of checking code that could have been the reason for the strange behavior..
Cheers
Tommaso
but will we bring it run like you want it to run, it only question of time![]()
Cheers
Tommaso
TraderDesk wrote:I still see the EA not opening the position until 15 pips AWAY from the HA line. It should be within 15 pips of the HA line.... See the below EURUSD chart where I had the EA open for a while. It would not open until price jump past 15 pips...
Maybe we should chang the variable PriceFromHALine to PriceWithinHALine as well... what do you think?
Thanks...
Good morning Tommaso,milanese wrote:Ok we will try this one..
Cheers
Tommaso
The indicator looks always only at the bid this is why I use only bid in the code, I will later change the code that we have an EA that will doing what you are explaining..TraderDesk wrote:Good morning Tommaso,milanese wrote:Ok we will try this one..
Cheers
Tommaso
The EA is looking better with the updates. I am trying to think of a way to keep things simpler. I can see that it is very easy for this EA to get too complicated for your time and I do not want to take up your valuable time too much.
On the Heiken Ashi indicator would you be able to use the changing of the color where it goes from RED to BLUE and visa-versa for the original new position? So when Price Action goes above/below the HA Line after the close of the next bar it will turn BLUE for bullish and RED for bearish. So the logic I imagine would be like this:
Color turned BLUE - Check
DelayTheEntryForXBars=2 : 2 Bars must be BLUE
PriceWithinHALine=10 :ASK Price is within 10 pips
---------------------------------------------------------
Color turned RED - Check
DelayTheEntryForXBars=2 : 2 Bars must be RED
PriceWithinHALine=10 : BID Price is within 10 pips
The EA should only open a new position with the CHANGE of the color so when I run it the EA will wait until the next change of color. Because I have it looking at pips my thought is we need to look at ticks because if we wait until the close of the bar Price could of changed.
Please notice that for BUY we should look at the ASK Price and for SELL it should be BID price.
For now I would want the EA to do just this. No additional buys/sells just the above and when I see it works then we can move to the next step.... Step by step...
Now again if this is taking too much of your time please let me know...I appreciate what you are doing but as you the only one here coding it might be too much with your free time....
Thanks...