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

Re: [amibroker] Opening Range Code Help



PureBytes Links

Trading Reference Links

I did plot it and it works ok.

On 10/2/05, Charles Stangor <cstangor232@xxxxxxxxxxxxxxxxxx> wrote:
Tony. 
 
Here are some suggestions:
 
Try printing or plotting your values to be sure the buys and sells are being generated.  For instance:

PlotShapes

(Buy * shapeUpArrow, colorBlue);

printf

(WriteVal(Sell));

Then be sure the AA settings are set up OK:  Be sure you have enough equity to cover the trades, be sure both long and short are checked, and be sure the periodicity matches what you want.

Hope this helps.

----- Original Message -----
From: Tony Lei
Sent: Sunday, October 02, 2005 2:55 PM
Subject: [amibroker] Opening Range Code Help

Hi all,

I ran this code in my automatic analysis and set my periodicity to 1min.  I wanted to test this code using 1 symbol and it was AET.  Nothing show up and I don't know what I did wrong.  Any help is appreciated.

Here is the code

// Using DateTime plugin
MarketOpen = 093000;
MarketClose = 160000;
MarketHours = deFlagTimeRange(MarketOpen, MarketClose);
FirstBarOfDay = deFlagFirstBarOfDay(MarketOpen);
LastBarOfDay = deFlagLastBarOfDay(MarketClose);
enumMarketHours = BarsSince(FirstBarOfDay);
 
// First 30 minutes of Opening Range
 
OR30Low = deTimeRangeLLV (L,MarketOpen,100000 ) ;
OR30High = deTimeRangeHHV (H,MarketOpen,100000 ) ;

Buy =  Close >= OR30High ;
Short = Close <= OR30Low ;

Filter = Buy AND Short ;

AddColumn( OR30High,"Buy Value", 1.2 ) ;
AddColumn( OR30Low,"Sell Value",1.2 ) ;

//Plot(OR30High ,"H",colorBlue,styleNoRescale);
//Plot(OR30Low ,"L",colorRed,styleNoRescale);

Thanks

Tony




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS






Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS