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

[amibroker] Problems with tracing variable value through exploration... [1 Attachment]


  • Date: Mon, 14 Dec 2009 13:24:54 -0800 (PST)
  • From: Gray Bohon <egbohon@xxxxxxxxx>
  • Subject: [amibroker] Problems with tracing variable value through exploration... [1 Attachment]

PureBytes Links

Trading Reference Links

[Attachment(s) from Gray Bohon included below]

I am doing some testing with explorations.  I'm trying to get what seems like a very simple exploration to work, and its not doing what I would have expected.
 
Here is my code:
 

// Test the MA crossover exploration...

 

// long trades entry and exit rules:

MovAvg = EMA( Close, 15 );

Buy = Cross( Close, MovAvg );

Sell = Cross( MovAvg, Close );

 

Filter=Buy OR Sell;

AddColumn( Close, "Close" );

 

_TRACE("sell..." + Sell + " buy..." + Buy);

_TRACE("Close..." + C);

_TRACE("MovAvg..." + MovAvg);

 

 

I have the exploration set to run every 30 sec, on a chart that has 1-minute bars.  There are plenty of signals that should be triggered by the data.

 

For some reason, the variable "MovAvg" is reported in the trace-log the when I initially run the exploration, but registers a value 0 on subsequent itterations as it autoruns. 

 

I think I must be missing a setting or something.  Attached is my autorun setup. 

 

Any ideas on why this is happening?  The value of the Close is reported accurately by every itteration of the autorun.  The values of Buy and Sell are also reported, though I think is not working right based on the problem with "MovAvg."

 

Thanks in advance.

 

-GB


Attachment(s) from Gray Bohon

1 of 1 Photo(s)


__._,_.___


**** 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

__,_._,___