long in the market with previous low candle stop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31999 quote
    Menghan
    Participant
    Junior

    I want to create a type code:

    long in the market with previous low candle stop If only one is correct,

    But more than two are wrong can you help me,Try for a long time can not solve

    period=55
    XDAY=5
    h55=highest[period](high)
    once i=0
    if h55<=h55[1] and h55<=h55[2] and h55<=h55[3] and h55<=h55[4] and BARINDEX-TRADEINDEX>=Xday   then
    buy 1 shares at h55+0stop
    endif
    if   HIGH=highest[period](high) and  BARINDEX=TRADEINDEX and onmarket then
    i=low[1]
    endif
    r=tradepricE-i
    SET STOP loss r
    
    0413-1.png 0413-1.png 04132-1.png 04132-1.png
    #32410 quote
    Nicolas
    Keymaster
    Master

    I’d like to help but I’m not sure to understand your request?

    Where (price level) do you want to place your BUY order? (at line 6)

    Your query is about putting your stoploss at the low of the signal candlestick?

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

long in the market with previous low candle stop


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Menghan @menghan Participant
Summary

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

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