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 The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    36 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X