Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

MFI + MACD Simple strategy (5 min)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MFI + MACD Simple strategy (5 min)

    Strategy (for longs):
    Buy Under these two conditions (ALL):
    1. MFI is oversold (under 20)
    2. MACD diff went from below 0, to greater than 0.

    Stoploss:
    Below the candle where long was entered

    Take profit conditions (ALL):
    1. MFI is over bought
    2. MACD diff is smaller than previous bar.


    Not sure how to incorporate the stoploss and take profit as it seems to want a specific percentage. Any idea?

    Thank you.

    #2
    Hello mohdhm,

    Thank you for your note.

    You could set your stop loss as the price of the current low which would be the low the trade was submitted, I have attached a screen shot of how this would look.

    For your profit conditions, you would want to create a new set of conditions and actions (press the plus above the view code button when on the conditions and actions page). You would then write the if statements for MFI overbought and MACD diff being smaller than the previous bar (1 bars ago). If these were true you would then set an action for exit long. I attached a screen shot.

    Please let us know if you need further assistance.


    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,966 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    4 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    54 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    8 views
    0 likes
    Last Post lightsun47  
    Working...
    X