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

[amibroker] Help on indicator not plotting



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>'scuse me there Gary but maybe equity does a little bit 
more that just jigger the plotshapes..?? Like enable the functioning of the 
various ApplyStops?  
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>I'm sure TJ will jump in if there's 
more..
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d

  
  
  From: Gary A. Serkhoshian 
  [mailto:serkhoshian777@xxxxxxxxx] Sent: Wednesday, April 21, 2004 
  12:13 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] Re: What Equity() does with its different flags 0, 1, 
  2
  
  Sorry for the 2 prev sends.  Tough to manage e-mail with the shakes... 
  Better get a cup of coffee after I send this.. : )
  Here's code that works and illustrates the point:
   SetTradeDelays(1, 1, 1, 1);
  Buy = C > MA(C, 20);Sell = C < MA(C, 
  20); WhichEquity = Param("Which Equity Flavor 0 - 2?", 0, 0, 2, 
  1); if (WhichEquity == 1){   MyEquity = 
  Equity(1);} if (WhichEquity == 2){  MyEquity = 
  Equity(2);} if (WhichEquity == 0){  MyEquity = 
  Equity();}Plot(C, "Close", colorDefault, 
  styleCandle);Plot(MyEquity, "Equity", colorDefault, styleLine + 
  styleLeftAxisScale);PlotShapes(Buy * shapeUpArrow + Sell * 
  shapeDownArrow,                  
  Buy * colorBrightGreen + Sell * colorYellow, 
  0,                  
  Buy * L + Sell * H, -15);
   
   
   
  
  
  Do you Yahoo!?Yahoo! Photos: <A 
  href="">High-quality 
  4x6 digital prints for 25" Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 the Yahoo! Terms of Service.