Stop/loss at the previous range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46202 quote
    CrillezzCrillezz
    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
    DespairDespair
    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.
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

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 DespairDespair
9 years ago.

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