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

[amibroker] Re: CAN THIS INDICATOR BE IN SCAN/EXPLORATION MODE?



PureBytes Links

Trading Reference Links

HI GUYS

Dont have any idea in programing,I REALLY need to get a SCAN/EXPLORATION MODE on this fomular. CAN ANYONE HELP PLEEEAAASE!!!!!
below is an idea of what i need

"Buy Signal - Buy highest (high,10) + 1 point stop (applied to a 30-minute crude oil bar chart). 
ExitLong Signal - Exitlong at +8 Value Chart price level or higher (applied to a daily crude oil value chart). 
Money Management Stop - Place money-management stop 1 tick below lowest low in 30-minute bar chart for the 10 bars preceding the short-term breakout buy signal.

These trading rules simply state that we will buy crude oil when (1) an uptrend has been established, (2) crude oil trades below the -8 Value Chart price level, and (3) a buy signal is generated by a 10-bar breakout system applied to 30-minute bar charts. We will exit our long position when the crude oil Value Chart trades above the +8 Value Chart price level or gets stopped out below our 30-minute bar chart entry point. 

The first step would be to confirm that crude oil is in a bull market as defined by the Filter: 
Filter One: Uptrend will be established by a trend-following strategy -- only following trading signals in the direction of the trend. When a 25-day simple moving average of the closing prices crosses above (and remains above) a 75-day simple moving average of the closing prices, than an uptrend will be indicated. 

And we have yet a second requirement: 
Filter Two (Buy signal): Once an uptrend is indicated by the moving average trend-following system, look to buy into the daily crude oil market when it trades below the -8 Value Chart price level. 




The purpose of reviewing this example trading strategy is simply to demonstrate how many different trading tools can be used to enhance Value Charts. You can use these simple rules to identify trading opportunities in other markets.

NB
MY CORE INTEREST IS FOR DAILY CHART
--- In amibroker@xxxxxxxxxxxxxxx, "progster01" <progster@xxx> wrote:
>
> There's no reason why it couldn't be.
> 
> Just supply AddColumn() statements for what you want to see in the Exploration.
> 
> From the Help file, where examples are also provided:
> 
> AddColumn( array, name, format = 1.2, textColor = colorDefault, bkgndColor = colorDefault, width = -1 ) 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "rashmo_70" <rashmo_70@> wrote:
> >
> > ////  Vchart
> > //This was converted from code created for TradeStation by Mark W. Helweg of ValueCharts.com
> > VarNumbars = Param("Number of Bars",5,2,1000,1);
> > Color = Param("Bar Color",colorBlue);
> > Top = Param("Top Chart Line",8);
> > TopMid = Param("Top Mid Chart Line",4);
> > BottomMid = Param("Bottom Mid Chart Line",-4);
> > Bottom = Param("Bottom Chart Line",-8);
> > Plot(Top,"Top Chart Line",colorRed);
> > Plot(TopMid,"Top Mid Chart Line",colorLightGrey);
> > Plot(BottomMid,"Bottom Mid Chart Line",colorLightGrey);
> > Plot(Bottom,"Bottom Chart Line",colorRed);
> > 
> > LRange = 0;
> > 	VarP = round(VarNumBars/5);
> > if (VarNumBars > 7) 
> > {
> > 	VarA=HHV(H,VarP)-LLV(L,VarP);
> > 	VarR1 = IIf(VarA==0 AND VarP==1,abs(C-Ref(C,-Varp)),VarA);
> > 	VarB=Ref(HHV(H,VarP),-VarP+1)-Ref(LLV(L,VarP),-VarP);
> > 	VarR2 = IIf(VarB==0 AND VARP==1,abs( Ref(C,-VarP)-Ref(C,-Varp*2) ),VarB);
> > 	VarC=Ref(HHV(H,VarP),-VarP*2)-Ref(LLV(L,VarP),-VarP*2);
> > 	VarR3 = IIf(VarC == 0 AND VarP==1,abs(Ref(C,-Varp*2)-Ref(C,-Varp*3)),VarC);  
> > 	VarD = Ref(HHV(H,VarP),-VarP*3)-Ref(LLV(L,VarP),-VarP*3);
> > 	VarR4 = IIf(VarD == 0 AND VarP==1,abs(Ref(C,-Varp*3)-Ref(C,-Varp*4)),VarD);	
> > 	VarE = Ref(HHV(H,VarP),-VarP*4)-Ref(LLV(L,VarP),-VarP*4);
> > 	VarR5 = IIf(VarE == 0 AND VarP==1,abs(Ref(C,-Varp*4)-Ref(C,-Varp*5)),VarE);	
> > 	LRange=((VarR1+VarR2+VarR3+VarR4+VarR5)/5)*.2;
> > };
> > 
> > 
> > CDelta = abs(C - Ref(C,-1));
> > if (VarNumBars <=7)
> > {
> > 	Var0 = IIf(CDelta > (H-L) OR H==L,CDelta,(H-L));
> > 	LRange = MA(Var0,5)*.2;
> > }
> > MidBarAverage = MA( (H+L)/2,VarNumbars);
> > VOpen = (Open- MidBarAverage)/LRange;
> > VHigh = (High-MidBarAverage)/LRange;
> > VLow = (Low-MidBarAverage)/LRange; 
> > VClose = (Close-MidBarAverage)/LRange; 
> > PlotOHLC(VOpen,VHigh,VLow,VClose,"ValueChart",color,styleBar | styleThick ,-12,12);
> > Title= Name() + " " + WriteVal( DateTime(), formatDateTime )+
> > 	"\nVOpen " + VOpen + "\n"+ " VHigh "+ VHigh + "\n"+ " VLow " + Vlow  + "\n"+ " VClose " + VClose;
> >
>




------------------------------------

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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/