I want to create a type code:
long in the market with previous low candle stop
you help me?
ALEModerator
Master
Hello,
could write your question in Italian please?
Thanks
Ale
vorrei creare un codice dove inserire lo stop loss al minimo o al massimo della precedente barra
grazie
ALEModerator
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
grazie
m non prende gli stop e non so perche’
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
buongiorno
come faccio ad inserire l’indicatore Bill Williams Fractals ?
grazie
ho messo gli stessi codici su proreal 10.2 e su 10.3 e nel probacktest non risulta uguale
come mai?
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
ALEModerator
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