Stop/loss at the previous range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46202 quote
    Crillezz
    Participant
    Veteran

    Hi! I am looking for a code that take the previus candle range/length and set the stop at the entry –  range of the previous candle, and profit/target at entry + range of the previous candle* 2

    #46207 quote
    Despair
    Blocked
    Master

    It depends little which is the previous candle depending on how you enter the market. Do you enter with a market order or with a stop/limit order?

    Anyway it should look like that:

    SL= tradeprice-range[1]
    TP= tradeprice+range[1]*2
    set target pprofit tp/pipsize
    set stop loss sl/pipsize
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Stop/loss at the previous range


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Crillezz @crillezz Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Despair
8 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/14/2017
Status: Active
Attachments: No files
Logo Logo
Loading...