?
?
inputs: AfStep( ), AfLimit(??),adxlen(),level(),stopl(),proft() ;
variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ;
Value1 = ParabolicSAR( AfStep, AfLimit, var0, var1, var2, var3 ) ;
print(ADX(adxlen));
if ADX(adxlen)<level and adx(adxlen)>20 then begin
if var2=-1 then
? ? ? ? ? ? ? ? buy ("b")next bar at var1 stop;
? ? ? ? ? ? ? ??
if var2=1 then
? ? ? ? ? ? ? ? sellshort("s") next bar at var1 stop;
? ? ? ? ? ? ? ??
? ? ? ? ? ? ? ? ? ? ? ??
? ? ? ? end;
if currentcontracts<>0 then begin
setstoploss(stopl*bigpointvalue);
setpercenttrailing(proft*bigpointvalue,5);
end;
麻煩您幫我看看這段代碼怎么添加電子郵件警報,太感謝您了。
?
inputs: AfStep( 1), AfLimit( 1 ),adxlen(1),level(1),stopl(1),proft(1) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ;
Value1 = ParabolicSAR( AfStep, AfLimit, var0, var1, var2, var3 ) ;
print(ADX(adxlen));
condition1=ADX(adxlen)<level and adx(adxlen)>20;
if condition1 then begin
if var2=-1 then
? ?? ?? ?? ?? ? buy ("b")next bar at var1 stop;
? ?? ?? ?? ?? ??
if var2=1 then
? ?? ?? ?? ?? ? sellshort("s") next bar at var1 stop;
alert(text("condition1=",condition1," var2=",var2));? ???//警報? ?? ?? ?? ?? ?? ???
end;
if currentcontracts<>0 then begin
setstoploss(stopl*bigpointvalue);
setpercenttrailing(proft*bigpointvalue,5);
end;
?
inputs: AfStep( 1), AfLimit( 1 ),adxlen(1),level(1),stopl(1),proft(1) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ;
Value1 = ParabolicSAR( AfStep, AfLimit, var0, var1, var2, var3 ) ;
print(ADX(adxlen));
condition1=ADX(adxlen)<level and adx(adxlen)>20;
if condition1 then begin
if var2=-1 then
? ?? ?? ?? ?? ? buy ("b")next bar at var1 stop;
? ?? ?? ?? ?? ??
if var2=1 then
? ?? ?? ?? ?? ? sellshort("s") next bar at var1 stop;
alert(text("condition1=",condition1," var2=",var2));? ???//警報? ?? ?? ?? ?? ?? ???
end;
if currentcontracts<>0 then begin
setstoploss(stopl*bigpointvalue);
setpercenttrailing(proft*bigpointvalue,5);
end;