Not logged in
Viewing 4 posts - 1 through 4 (of 4 total)

Forums>StrategyQuant>General Discussion>10 candles must be higher than the moving average

  • #269187 |
    Participant
    1 Posts

    Just like what the title says, how do i make a condition where 10 candles must be higher/lower than the moving average value

    #269205
    tomas262
    Administrator
    1826 Posts

    Hello,

    it can be done. You can simply count bars. Like if Close > EMA you increase the counter value by 1. If Close < EMA you reset the counter to 0.

    You can then setup a condition such as if Counter > 20 (20 bars above EMA) + another condition you would enter a trade

    #269206
    Customer
    793 Posts

    is it really possible to make the counter in the algowizard?

    You want to be a profitable algotrader? We started using StrateQuant software in early 2016. For now we have a very big knowhow for building EAs for every possible types of markets. We share this knowhow, apps, tools and also all final strategies with real traders. If you want to join us, fill in the FORM. 1500+ final SQX strategies for members running on demo accounts to verify the edge DEMO ACCS. We provide also strategies for indices - DAX, DOW JONES, NASDAQ, SP, UK, because we have realtick data from our brokers.

    #269277
    tomas262
    Administrator
    1826 Posts

    Yes, can be done. Check the example attached

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.