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

Re: [amibroker] Chart Signals Disappear when Interacting with Chart


  • Date: Mon, 7 Dec 2009 13:31:57 +0100
  • From: "Edward Pottasch" <empottasch@xxxxxxxxx>
  • Subject: Re: [amibroker] Chart Signals Disappear when Interacting with Chart

PureBytes Links

Trading Reference Links



try adding:
 
SetBarsRequired(-2,-2);
 
at the top of your code.
 
 
 
----- Original Message -----
Sent: Monday, December 07, 2009 5:19 AM
Subject: [amibroker] Chart Signals Disappear when Interacting with Chart

 

Hi,

I have noticed that chart signals sometimes disappear when I interact with the chart, e.g. when I click on it or scroll it.

Here is an example of a script where this problem occurs:

// Script Start

SetPositionSize(20, spsPercentOfEquity);
SetTradeDelays(1, 1, 1, 1);

BuyPrice = SellPrice = O;

HHP = 16;
LLP = 5;

HH = Ref(HHV(C, HHP), -1);
LL = Ref(LLV(C, LLP), -1);

Buy = Cross(C, LL) AND BarCount > 248 * 2;
Sell = Cross(HH, C);

Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);

Plot(HH, "HH", colorLightBlue, styleLine);
Plot(LL, "LL", colorLightOrange, styleLine);
PlotShapes(shapeUpArrow * Buy, colorBrightGreen);
PlotShapes(shapeDownArrow * Sell, colorRed

// Script End

Can anyone assist with this, please?

HNJ van Rensburg



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___