[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 06:08:58 -0500
  • From: "James Hutchison" <phutch@xxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] Chart Signals Disappear when Interacting with Chart

PureBytes Links

Trading Reference Links



Your BuyPrice = SellPrice = O;  is the current bar and you are trading on the bar before the current bar  use BuyPrice = SellPrice = Ref(O,-1);

 

Jim Hutchison

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of hjansenvanrensburg
Sent: Sunday, December 06, 2009 11:20 PM
To: amibroker@xxxxxxxxxxxxxxx
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

__,_._,___