[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: CSI vs QP: the good, the bad, the ugly



PureBytes Links

Trading Reference Links

Hi,
I used following code and always I get an email with symbol name and 
value
if ( tradingtime=1)
{
ApplyStop(stopTypeLoss,stopModePoint,OptStop,True);
//ApplyStop(stopTypeTrailing,stopModePoint,OptStop2,True,True);
ApplyStop(stopTypeTrailing, stopModePoint, Opt4*ATR(Opt3), True,True);
ApplyStop(stopTypeProfit, stopModePoint, Opt7,1,1);


//Filter=Buy OR Sell OR Short OR Cover;
//Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); Short=ExRem
(Short,Cover); Cover=ExRem(Cover,Short);
Equity(1,0);
PlotShapes(IIf(Buy==1,shapeUpArrow,shapeNone) ,colorBrightGreen);
PlotShapes(IIf(Sell==1,shapeHollowDownTriangle,shapeNone) ,colorRed);
PlotShapes(IIf(Short==1,shapeDownArrow,shapeNone),colorRed);
PlotShapes(IIf
(Cover==1,shapeHollowUpTriangle,shapeNone),colorBrightGreen);
PlotShapes(IIf(Sell>=2,shapeDownArrow,shapeNone),colorYellow); 
PlotShapes(IIf(Cover>=2,shapeUpArrow,shapeNone),colorBlue); 

barcomplete = BarIndex() < LastValue(BarIndex());

AlertIf (barcomplete AND Buy==1, "EMAIL", "Hallo", 1);
AlertIf (barcomplete AND Short==1, "EMAIL", "Short/"+WriteVal(C,4.2), 
3); 
AlertIf (barcomplete AND Sell>=2, "EMAIL", "StopSell/"+WriteVal
(C,4.2), 2); 
AlertIf (barcomplete AND Cover>=2, "EMAIL", "StopBuy/"+WriteVal
(C,4.2), 4); 
}
Suddenly I only get a "buy" or "short" or something, but without any 
other text. What's the problem?

Thank you
Thomas



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/