Cross Over Indicator HELP please
Forums › ProRealTime English forum › ProBuilder support › Cross Over Indicator HELP please
- This topic has 45 replies, 3 voices, and was last updated 1 year ago by JS.
-
-
01/09/2018 at 12:37 AM #57832
that’s perfect… thank you soo much once again!!
01/09/2018 at 12:38 AM #57833That’s perfect… Thank you so much once again!!
1 user thanked author for this post.
01/11/2018 at 2:21 AM #58951Hi Roberto,
Sorry, I’m kinda bothering you again but this will be the last thing I would ask. I had a look at other stuff and found you can actually make the candlestick coloured instead of the arrow.. so the idea is when EMA crossover candlestick will go green, green, green until it’s cross back under.. to go red!?! if both true in short period ( lets say in 5 candles) the candlestick go white? if that make sense! is this something you can create? or am I just dreaming?
I managed to add something to your one but i can only change the first candle instead of the arrow but it doesn’t continue to go green or red 🙁
12345678910111213141516171819202122232425262728293031323334353637383940414243DEFPARAM CalculateOnLastBars = 1000fast = ExponentialAverage[9](close)slow = ExponentialAverage[40](close)//first arrow is blueishCrossOver = fast crosses over slowIF CrossOver THENCrossUnder = 0//cross = slow[1]DRAWARROWUP(barindex,LOW-5*pointsize) COLOURED(0,255,10)drawcandle(open,high,low,close) coloured(0,255,0)endifIF CrossOver[5] THENIF summation[4](CrossOver OR CrossUnder) = 0 THENTopLine = highest[5](high) + (5 * pipsize)DRAWTEXT("---#TopLine#---",barindex-3,TopLine,SansSerif,Bold,10)coloured(0,153,0)ENDIFENDIF//next arrows are purple and semi transparent//if fast>slow AND slow<>cross then//DRAWTEXT("*",barindex, slow) COLOURED(0,204,0)//endif//first arrow is blueishCrossUnder = fast crosses under slowif CrossUnder thenCrossOver = 0//cross = slow[1]DRAWARROWDOWN(barindex,HIGH+5*pointsize) COLOURED(255,0,10)drawcandle(open,high,low,close) coloured(255,0,0)endifIF CrossUnder[5] THENIF summation[4](CrossOver OR CrossUnder) = 0 THENBottomLine = lowest[5](low) - (5 * pipsize)DRAWTEXT("---#BottomLine#---",barindex-3,BottomLine,SansSerif,Bold,10)coloured(153,0,0)ENDIFENDIF//next arrows are purple and semi transparent//if fast<slow AND slow<>cross then//DRAWTEXT("*",barindex, slow) COLOURED(255,0,0)//endifplease, your help will be much appreciated..
Thanks
Ro
01/11/2018 at 10:57 AM #58972Nice idea and good looking indicator, well done. Should take place in the Library once finished. I’d like to help @robertogozzi to add your new query to the code, but I don’t understand the “green,green,green” statement in your description? Do sometimes we get 3 green signals in the same row?
01/11/2018 at 11:25 AM #59013This one looked interesting so I converted it into a long only DAX 4HR strategy which backtested pretty good and walked forward pretty good. I’m not a huge fan of MA’s due to the lag but this seemed like a new way of using them so it got my interest. I’ve had the strategy on live Demo since new year’s day. Only one trade so far but a nice 250 pip profit. Still developing and trying to improve it at the moment.
Images attached of the backtest.
01/11/2018 at 1:04 PM #59038Hi Nic,
what i meant was.. when it cross over up or down.. if its up… all the candles go green until it crosses back down? (so will be like heikin- ashi) if this is side ways the candle colour change to white?
01/11/2018 at 1:12 PM #59041Hi vonasi,
please, can you tell me how to do a backtest like this? i like do the test in another market??
01/11/2018 at 1:33 PM #59048we dont get a 3 green signals in row.. unless the market cross back down!!
01/11/2018 at 1:58 PM #59056Hi vonasi, please, can you tell me how to do a backtest like this? i like do the test in another market??
The backtest is of a strategy that I am working on that is based on the code from this indicator. You cannot do this sort of backtest on an indicator. At the moment the strategy is only being developed on the DAX if it works well then maybe it can be adapted to other markets. If the strategy works out then I might share it – or I might just keep it to myself and retire to a tropical island!
01/11/2018 at 6:36 PM #59087… if this is side ways the candle colour change to white?
Ok for green/red candles.
How do you define a candle which starts a sideways trend and a candle that signals its end?
01/11/2018 at 7:22 PM #59096Hi Roberto,
ok this is abit hard to explain so i coloured the chart and took pics… and this is exactly what i want this to do!! please see pics
The first pic where we get the cross to go down.. candles go red but on that trend, original green candles will go dark red ( pleaase see pic)
Second one is the other way around!
Third one – when corss over and under in short period as seen in pic middle candles end up white. (when both true i guess)
to be honest if you ignore the white candles..even if we can get first and second pic.. its big achievement!!
i really hope this makes any sense to you!
thanks so much both of you!
01/11/2018 at 7:24 PM #5910001/11/2018 at 9:05 PM #59107hehe.. hopefully, you can retire soon! loads of other stuff to add to this tho! would you share this strategy what you developed on the DAX? so I can try it out too? I’ve spent soo much time back testing but your way is easier of course!!!
01/11/2018 at 9:41 PM #59110hehe.. hopefully, you can retire soon! loads of other stuff to add to this tho! would you share this strategy what you developed on the DAX? so I can try it out too? I’ve spent soo much time back testing but your way is easier of course!!!
It is still in rough and needs some forward testing and probably a few tweaks and maybe the odd totally new version! I know it may be frowned upon in some circles but I’m not really very big on strategy sharing as there is nothing worse than offering up a strategy and then getting back in return ‘I lost all my money on your strategy! if it turns out to fail in the future or the end user never re-optimized it or left it running in unsuitable market conditions. I personally feel happier sharing indicators that can be converted into strategies or add to the ‘edge’ that every trader tries to hold onto. I like the concept of teaching a man to fish rather than giving him a fish. I also subscribe to the Darwin philosophy that if you teach a man to fish but he is too lazy to fish or too stupid to remember to fish then he will die of starvation – survival of the fittest and all that.
I thank you though for your indicator idea and robertgozzi for his coding of it as it is always nice to have a fresh fishing rod to try out.
01/11/2018 at 10:14 PM #59111Honestly, you could have just said yes or no rather than a lecture. this is not going make you a millionaire.. trading involves more than this.. just think about it.. you know cording, creating strategies etc… but still dreaming of retire on a tropical island.. just maybe.. just maybe something will happen if you change your attitude.. so learn to give more and you will get more. my philosophy :)!! I’m trying to learn to cord and to create something.. only reason Ive reached out your help!! thanks anyway and good luck!
-
AuthorPosts
Find exclusive trading pro-tools on