Fast Moving Average and Price Crossover

Forums ProRealTime English forum ProOrder support Fast Moving Average and Price Crossover

Viewing 7 posts - 1 through 7 (of 7 total)
  • #10175

    Hi, I have a system that uses heiken ashi candles and it will go long when the simple moving average(9) crosses a bullish candle and then closes and goes short when it crosses a bearish candle. I need any help making it as I’m having trouble doing so. It’s a pretty basic system and I’ve tried stuff like what you can see below but that doesn’t work. Please help.

     

    #10178

    Hello, I have not tested your strategy code but it seems right. Why do you think this is not working?

    #10179

    Hi, this code is correct but it doesn’t do my system correctly. The main problem I’ve been having is getting the system to recognize when the moving average has crossed a candle, then to recognize what direction the candle is.

    #10182

    Your code is catching correctly the moment when price are crossing the moving average. If you want to add a condition on the candlestick direction, you can code it like this:

     

    #10183

    Hi, thank you for your help it’s helped me a lot. I have realized that the problem i was having is that I use heiken ashi candles but ProOrder uses regular candlesticks. How can I get my code to buy/sell according to Heiken Ashi candles instead of regular candlesticks? thank you

    #10188

    Here is Heiken Ashi candlestick codes for Open and Close:

     

    #10189

    thank you, you have been very helpful, but can you direct me where to put that code in order to make my system work? thank you

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login