Help with Trading Conditions in Renko
-
I'm trying to code a EA using 2 different sizes of renko blocks.
The big block formed with 10 pips: and small block formed with 5 pips. When the previous big block closes above Parabolic Sar indicator and when the previous small block closes above Parabolic Sar, if there is no trade then EA should Buy.
Can you please show me how this will look like in fxdreema.Thanks
-
just use Condition block for your conditions, connect more blocks togethed and it is
learn it on something easier and step after step, combination after combination you can do your work ... dont forget test in tester all changes you did 
-
Ok here is a detailed explanation and what I have done so far

Above is a renko chart of EURUSD, left chart was made with 7 pips while the right was made with 14 pips and they both have Parabolic sar indicator applied to them.
Now the trade idea am trying to code is when both charts have PSAR indicator below the last candle a Buy trade should be placed and when they both have the PSAR above the last candle a Sell trade should be placed.
Here is my code for Buy trade https://fxdreema.com/shared/E8b22extdNow it is not trading.
How can I fix it pls?
The challenge I think is because it is on 2 different charts or what do you think?Thanks for your help
-
this:

-
Thanks for prompt response. I will try that.
-
I have implemented what you said above and it works great. Thanks.
Still on developing this EA I have another question. Looking at the chart below

The left chart is the smaller time frame while the right chart is the bigger time frame. My idea is to trade using the bigger time frame as the direction and the smaller time frame for entry. So when the bigger time frame gives a sell signal ie PSAR is above price and PSAR is also above price on the smaller time frame then EA should sell.
Here is my code https://fxdreema.com/shared/iNEWjjAfc
( Note: Just an example code, I know I have to change the TF to match the renko charts in order for it to actually trade. )EA will sell on the small TF at signal A, B and C, but this is NOT what I need, what I need is for EA to sell just once at the very first signal which is A and not sell at B or C.
What condition do I have to put to make this possible?
Thanks for all your help on this forum. -
here are many ways how to do this ... take inspiration from this cross example:
https://fxdreema.com/demo/mt4-psar-reversalsor do crossover using own blocks (compare candle close with psar value), and set candle IDs for 1 candle into history (because sometimes I noticed reapainting on previous candle on psar)
EA logic can be:
- once per bar: controling bigger renko cross, if cross happens - save it state into flag (if buy condition - flag is 1, if sell condition - flag is -1)
- if flag exist, check flag state and check lower renko, if all is true, buy or sell and flag set to 0
...
because of using once per bar, EA is waiting for next bigger renko cross where flag will be changed to 1 or -1 (depending on trade direction)
-
Thanks you've given me some idea.
-
@juxta14 Hi... Did you created EA based on Renko charts? I need to create EA such that if there are 2 same coloured brick then we need to buy / sell and if the colour changes in the complete of next brick then sell it.
My brick size would be 20.
Possible to help me out?
Thanks in advance.!!!!