Cross Over Indicator HELP please

Viewing 15 posts - 16 through 30 (of 46 total)
  • Author
    Posts
  • #57832 quote
    crolakstrading
    Participant
    Senior

    that’s perfect… thank you soo much once again!!

    #57833 quote
    crolakstrading
    Participant
    Senior

    That’s perfect… Thank you so much once again!!

    robertogozzi thanked this post
    #58951 quote
    crolakstrading
    Participant
    Senior

    Hi 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 🙁

    DEFPARAM CalculateOnLastBars = 1000
    fast = ExponentialAverage[9](close)
    slow = ExponentialAverage[40](close)
     
    //first arrow is blueish
    CrossOver = fast crosses over slow
    IF CrossOver THEN
    CrossUnder = 0
    //cross = slow[1]
    DRAWARROWUP(barindex,LOW-5*pointsize) COLOURED(0,255,10)
    drawcandle(open,high,low,close) coloured(0,255,0)
    endif
    
    IF CrossOver[5] THEN
    IF summation[4](CrossOver OR CrossUnder) = 0 THEN
    TopLine = highest[5](high) + (5 * pipsize)
    DRAWTEXT("---#TopLine#---",barindex-3,TopLine,SansSerif,Bold,10)coloured(0,153,0)
    ENDIF
    ENDIF
    //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 blueish
    CrossUnder = fast crosses under slow
    if CrossUnder then
    CrossOver = 0
    //cross = slow[1]
    DRAWARROWDOWN(barindex,HIGH+5*pointsize) COLOURED(255,0,10)
    drawcandle(open,high,low,close) coloured(255,0,0)
    endif
    IF CrossUnder[5] THEN
    IF summation[4](CrossOver OR CrossUnder) = 0 THEN
    BottomLine = lowest[5](low) - (5 * pipsize)
    DRAWTEXT("---#BottomLine#---",barindex-3,BottomLine,SansSerif,Bold,10)coloured(153,0,0)
    ENDIF
    ENDIF
    
    //next arrows are purple and semi transparent
    //if fast<slow AND slow<>cross then
    //DRAWTEXT("*",barindex, slow) COLOURED(255,0,0)
    //endif
    

     

    please, your help will be much appreciated..

    Thanks

    Ro

    #58972 quote
    Nicolas
    Keymaster
    Master

    Nice 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?

    #59013 quote
    Vonasi
    Moderator
    Master

    This 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.

    #59038 quote
    crolakstrading
    Participant
    Senior

    Hi 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?

    #59041 quote
    crolakstrading
    Participant
    Senior

    Hi vonasi,

    please, can you tell me how to do a backtest like this?  i like do the test in another market??

    #59048 quote
    crolakstrading
    Participant
    Senior

    we dont get a 3 green signals in row.. unless the market cross back down!!

    #59056 quote
    Vonasi
    Moderator
    Master

    Hi 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!

    #59087 quote
    robertogozzi
    Moderator
    Master

    … 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?

    #59096 quote
    crolakstrading
    Participant
    Senior

    Hi 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!

    #59100 quote
    crolakstrading
    Participant
    Senior

    third pic!!

    #59107 quote
    crolakstrading
    Participant
    Senior

    hehe.. 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!!!

    #59110 quote
    Vonasi
    Moderator
    Master

    hehe.. 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.

    #59111 quote
    crolakstrading
    Participant
    Senior

    Honestly, 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!

Viewing 15 posts - 16 through 30 (of 46 total)
  • You must be logged in to reply to this topic.

Cross Over Indicator HELP please


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 45 replies,
has 3 voices, and was last updated by JS
2 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/29/2017
Status: Active
Attachments: 20 files
Logo Logo
Loading...