top of page
"There's no certitude, only opportunities."   

Aide à la programmation

Public·1 membre

demande d'info sur programme

J'ai un problème pour faire accepter ce programme

on me répond que ce n'est pas series mais float series

concernant dh ou dS

Express Stop Mon_Target_Gex4_12012022


VARS

series G,Gex4 ;

series targetLevel ;

input ;

numeric ;


CALCULATION

SetIntraPeriodUpdate() ;

if IsFirstBar() then

begin

Calculate AtEveryTick(false) ;

end


for i=CurrentBarIndex() downto 0

begin

ExpMovingAverage(G,Gex4,4) ;

dh= highest((h-Gex4),7);

dSh= highest((Gex4-Gex4[2],7)/2) ;

dhS=dh+dS h; dL= lowest(Gex4-L),7) ;dSL=lowest((Gex4[2]-Gex4,7)/2) ;

dLS=dL+dSL ;

end


if MarketPosition=1 then

begin

if BarsSince Entry()<6 then TargetLevel=Gex4+8*tickSize() ;

else

TragetLevel=max(TargetLevel,Gex4+dhS) ;

SetTargetPrice(TargetLevel) ;

end


else

if MarketPosition=-1 then

begin

if BarsSinceEntry()<6 then TargetLevel=Gex4-8*tickSize()

else

TargetLevel=min(TargetLevel,Gex4-dLS) ;

SetTargetPrice=(TargetLevel) ;

end

//------------------------------------------------------



26 vues
philippe
Jan 18, 2022

Un autre probleme peut-etre avec les parentheses:

dh= highest((h-Gex4),7); cela calcule le plus haut sur 7 periodes de h-Gex4 a priori pas de probleme

dSh= highest((Gex4-Gex4[2],7)/2) ; dans cette expression il y a un probleme la derniere parenthese devrait etre avant le signe /

Eric Lefort trader français

© 2010 - 2025 Eric Lefort    MOGALEF is a registered trademark

Eric s'est retiré.
Il n'y aura plus de newsletter.

CONNECT WITH US

  • YouTube Basic Black
bottom of page