How to set a fixed stop and limit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75864 quote
    foxfutures
    Participant
    New

    Hi there!

    Just arrived as a new member. Hoping to get an answer to my question. I trade Forex on 3 hrs timeframes at fixed times: 7 am and 10 am.

    I wonder how I could set a fixed stop of 7 pips below the second bar before the opening of the trade. For instance: when I open a trade at 10 am, I would like to set my stop 7 pips below the “low” of the 4 am bar.

    I hope anyone can help me out!

    Thanks in advance!

    #75875 quote
    robertogozzi
    Moderator
    Master
    IF YourConditions AND Not OnMarket THEN
       BUY 1 CONTRACT AT MARKET
       SET STOP PLOSS (abs(close - low[2]) / pipsize) + 7
    ENDIF

    Since you cannot be sure the second previous bar is lower, this will set a SL anyway.

    #75903 quote
    foxfutures
    Participant
    New

    Thank you very much! This helps me a lot.

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

How to set a fixed stop and limit


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
foxfutures @foxfutures Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by foxfutures
7 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/12/2018
Status: Active
Attachments: No files
Logo Logo
Loading...