stop loss al minimo o al massimo della precedente barra

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15225 quote
    tradingpro
    Participant
    Senior

    I want to create a type code:
    long in the market with previous low candle stop
    you help me?

    #15230 quote
    ALE
    Moderator
    Master

    Hello,

    could write your question in Italian please?

    Thanks

    Ale

    #19930 quote
    tradingpro
    Participant
    Senior

    vorrei creare un codice dove inserire lo stop loss  al minimo o al massimo della precedente barra

    grazie

    #19933 quote
    ALE
    Moderator
    Master

    ciao

    il minimo della barra precedente è low [1]. il massimo e high[1].

    es:

    if condizione 1 then
    buy 1 contract at market
    stoploss= low[1]
    
    endif
    
    if condizione 2 then
    sellshort 1 contract at market
    stoploss= high[1]
    
    endif
    
    set stop loss stoploss
    #19977 quote
    tradingpro
    Participant
    Senior

    non funziona

    #19978 quote
    tradingpro
    Participant
    Senior

    grazie

    m non prende gli stop e non so perche’

    #20000 quote
    Nicolas
    Keymaster
    Master

    The “set stop loss” want points value in the own instrument digits, not price level, so the code should be instead:

    if condizione 1 then
     buy 1 contract at market
    stoploss= close-low[1]
    endif
    
    if condizione 2 then
     sellshort 1 contract at market
     stoploss= high[1]-close
    endif
    
    set stop loss stoploss
    ALE thanked this post
    #21051 quote
    tradingpro
    Participant
    Senior

    buongiorno

    come faccio ad inserire l’indicatore Bill Williams Fractals ?

    grazie

    #21508 quote
    tradingpro
    Participant
    Senior

    ho messo gli stessi codici su proreal 10.2 e su 10.3 e nel probacktest non risulta uguale

    come mai?

    #31967 quote
    Menghan
    Participant
    Junior
    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

    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

    #31992 quote
    ALE
    Moderator
    Master

    Hi Menghan

    Thanks for you question, it may help many people to resolve similar problem here in the forum, but this is Italian forum and it should be write in English, please post your question in a new topic in the english forum.

    Thanks

    Ale

    #31998 quote
    Menghan
    Participant
    Junior

    ok,sorry

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

stop loss al minimo o al massimo della precedente barra


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
tradingpro @tradingpro Participant
Summary

This topic contains 11 replies,
has 4 voices, and was last updated by Menghan
8 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/20/2016
Status: Active
Attachments: 2 files
Logo Logo
Loading...