Daily MA 20 strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165362 quote
    s00071609
    Participant
    Senior

    I am not sure if this is the right thread for this question. Is it possible to code this:

    Entry is under Daily MA 20 – entry in lower timeframe

    Exit is price closes under Daily MA 20.

    During initial entry price is already under daily MA20, so price close under MA20 condition is already met which should not be.

    How do I set condition so that, Daily MA20 is under the price and when price closes under Daily MA20 later, exit. The condition is somewhat contradictory as I want price to trade above MA, and exit condition is based on breach of MA

    What would be the workaround for this situation?

     

    thanks

    #165376 quote
    robertogozzi
    Moderator
    Master

    No, it wasn’t the right place.

    Do not append new questions to existing topics. Start a new one, instead.

    Thank you 🙂

    #165377 quote
    robertogozzi
    Moderator
    Master

    You first wrote “Entry is under Daily MA 20”, then “as I want price to trade above MA”.

    Can you make it clearer?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Daily MA 20 strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
s00071609 @s00071609 Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by robertogozzi
4 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/26/2021
Status: Active
Attachments: No files
Logo Logo
Loading...