ATR STOP LOSS

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #118820 quote
    kmilo20000kmilo20000
    Participant
    New

    Hello,

     

    I have been trying to code an ATR based stop loss, but so far I have not been able to do it. I am now wondering if it is possible at all.

     

    Basically, I just want that, after the conditions are met, the order is open and its stop loss is also created according to the value of 3 times the ATR.

    Condition1 = Close[1]> Average[24] 
    
    IF Condition1 THEN BUY 1 CONTRACTS AT MARKET Endif 
    
    X=(AverageTrueRange[10](close))*3 
    
    SET STOP LOSS X

     

    I tryed this and it did not work out:Anybody has any ideas?

    #118823 quote
    kmilo20000kmilo20000
    Participant
    New

    Nevermind. I already found the answer here:

     

    https://www.prorealcode.com/topic/atr-stop-loss-query/

    #118824 quote
    robertogozzirobertogozzi
    Moderator
    Legend

     

    I deleted your duplicate post in the spanish support forum.

    kmilo20000 thanked this post
    #119347 quote
    VonasiVonasi
    Moderator
    Master

    Topic moved to ProOrder forum as it is a strategy related question and not an indicator related question which is what the ProBuilder forum is for.

    So that is double posting and not posting in the correct forum. It’s a good thing we don’t operate a two strikes and your out policy here! 🙂

    #119359 quote
    kmilo20000kmilo20000
    Participant
    New

    Oopss! Sorry!

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ATR STOP LOSS


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kmilo20000 @kmilo20000 Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by kmilo20000kmilo20000
6 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/06/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...