hi
i need some help with a ea im writing for a renko chart
how do i program the ea to send the trades at bar open, and close them at bar close
i guess a simple Open[0] <> Close[1] would do the trick for opening segment, but how can i define the close without the EA going in to a endless loop of opening and closing orders??
would
if (Open[1] - Close[1] || Open[1] + Close[1] > RenkoCandleBody) send close. . . . . . ; work?
Renko Candle problems
- NeoTrader
- Trader
- Posts: 436
- Joined: Wed Apr 04, 2012 2:52 pm
- Location: small Village at Lake Chiemsee, Bavaria, Germany
Re: Renko Candle problems
hi alphakenny1,
just my two pips
happy trading,
NeoTrader
-
The open of the current bar implicates the close of the previous bar...I'm not that much in to EA's...but from a logical standpoint this should work... just close the previous order before you open your new order at the open of the new bar.alphakenny1 wrote:i need some help with a ea im writing for a renko chart
how do i program the ea to send the trades at bar open, and close them at bar close
i guess a simple Open[0] <> Close[1] would do the trick for opening segment, but how can i define the close without the EA going in to a endless loop of opening and closing orders??
would
if (Open[1] - Close[1] || Open[1] + Close[1] > RenkoCandleBody) send close. . . . . . ; work?
just my two pips
happy trading,
NeoTrader
-
-
alphakenny1
- Posts: 4
- Joined: Mon Jul 30, 2012 4:31 pm
Re: Renko Candle problems
Thank you for a quick reply and the confirming response
So i just have to implement a check for open trades before sending new orders, thank you.
I am not sure if this is the right way, but i can not see a different method of detecting bar close when working with renkos. Open for suggestions
Alpha
So i just have to implement a check for open trades before sending new orders, thank you.
I am not sure if this is the right way, but i can not see a different method of detecting bar close when working with renkos. Open for suggestions
Alpha
- crashout
- Trader
- Posts: 75
- Joined: Fri Dec 23, 2011 4:17 pm
- Location: In the trading room !
Re: Renko Candle problems
You know that each renko candle is X pips, so to find the open you need to find the close (hum
.
To find the close, maybe you can make a thing like X+1 pips, or something in this style.
Or another thing, it depends of the length of your renko, here you can work with round numbers, for exemple if closes at 1.2340 so we have the renko close.
Just my 2 pips, i know nothing
To find the close, maybe you can make a thing like X+1 pips, or something in this style.
Or another thing, it depends of the length of your renko, here you can work with round numbers, for exemple if closes at 1.2340 so we have the renko close.
Just my 2 pips, i know nothing