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

Re: [amibroker] Re: Help! How to move buy/sell arrows from indicator plot to price plot


  • Date: Mon, 22 Feb 2010 08:01:53 -0800
  • From: "Ara Kaloustian" <ara1@xxxxxxxxxx>
  • Subject: Re: [amibroker] Re: Help! How to move buy/sell arrows from indicator plot to price plot

PureBytes Links

Trading Reference Links

You can put your buy/sell arrays in static variables and access them from 
any pane.


----- Original Message ----- 
From: "Pmxgs" <pmxgs@xxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, February 22, 2010 7:57 AM
Subject: [amibroker] Re: Help! How to move buy/sell arrows from indicator 
plot to price plot


> Hi,
>
> try copying the formula below to a new afl file and then drag this into 
> the price pane.
> You should keep the formula you posted to plot the indicator in the pane 
> below price.
>
>
>
> SetBarsRequired( 200, 0 );
>
> function InvFisherTfm( array )
> {
> e2y = exp( 2 * array );
> return ( e2y - 1 )/( e2y + 1 );
> }
>
> Value1 = 0.1 * ( RSI( 5 ) - 50 );
> Value2 = WMA( Value1, 9 );
> IFT = InvFisherTfm( Value2 );
>
>
> Buy = Cross(IFT,Ref(IFT,-1));
> Sell = Cross(Ref(IFT,-1),IFT);
>
> Buy = ExRem(Buy,Sell);
> Sell = ExRem(Sell,Buy);
>
> PlotShapes(shapeUpArrow*Buy,colorGreen);
> PlotShapes(shapeDownArrow*Sell,colorRed);
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "rs5353" <rs53@xxx> wrote:
>>
>> I am struggling with this for two days.
>> Following AFL plots the indicator in a new pane below the price chart. 
>> But it also shows the up/down arrows on this indicator plot.
>> What do I have to do to make the arrows appear on the price chart?
>> The 'Show Trading Arrows' option has no effect - the arrows appear on the 
>> indicator plot whether it is set to 'Yes' or 'No' in the parameters box.
>> Could not find any answer in the user guide. Any help would be truly 
>> appreciated. Thanks.
>>
>>
>> //// General - purpose Inverse Fisher Transform function
>>
>> _SECTION_BEGIN("IFT");
>>
>> SetBarsRequired( 200, 0 );
>>
>> function InvFisherTfm( array )
>> {
>>   e2y = exp( 2 * array );
>>   return ( e2y - 1 )/( e2y + 1 );
>> }
>>
>> Value1 = 0.1 * ( RSI( 5 ) - 50 );
>> Value2 = WMA( Value1, 9 );
>> IFT = InvFisherTfm( Value2 );
>>
>> Plot( IFT, "IFT-RSI", colorRed, styleThick );
>> PlotGrid( 0.5 );
>> PlotGrid(-0.5 );
>>
>> _SECTION_END();
>>
>> _SECTION_BEGIN("SYSTEM");
>>
>> Buy = Cross(IFT,Ref(IFT,-1));
>> Sell = Cross(Ref(IFT,-1),IFT);
>>
>> Buy = ExRem(Buy,Sell);
>> Sell = ExRem(Sell,Buy);
>>
>> PlotShapes(shapeUpArrow*Buy,colorGreen);
>> PlotShapes(shapeDownArrow*Sell,colorRed);
>>
>> _SECTION_END();
>>
>
>
>
>
> ------------------------------------
>
> **** 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
>
>
>



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

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/