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

Re: [amibroker] (Price * Vol ) as a new indicator?



PureBytes Links

Trading Reference Links

Hello,
 
I think that the previous code may be too much complicated.
For simple C * V chart, with 2 different averages use this:
 
 
Period1 = Param("Sum period1", 15, 1, 100
);
Period2 =
Param("Sum period2", 25, 1, 100
);

Plot( MA( C * V, Period1 ), "MA(C*V,"+Period1+")", colorRed
);

Plot( MA( C * V, Period2 ), "MA(C*V,"+Period2+")", colorBlue );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Thursday, March 06, 2008 8:18 PM
Subject: Re: [amibroker] (Price * Vol ) as a new indicator?

Hello,
 
The following should do the work. It checks the lookback-day change in price and volume.
If both are positive then "1" is the result, otherwise -1. Then such binary signal is summed up over period-bars.
 
Lookback = Param("Change lookback", 1, 1, 100 );

ChgPrice =
ROC( C
, Lookback );
ChgVolume =
ROC( V
, Lookback );

BothUp =
IIf( ChgPrice > 0 AND ChgVolume > 0, 1, -1
);

Period =
Param("Sum period", 25, 1, 100
);

Plot( Sum( BothUp, Period ), "UpVolANdPrice", colorRed
);

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Tuesday, March 04, 2008 1:28 PM
Subject: [amibroker] (Price * Vol ) as a new indicator?


Hi, I am not an IT guy, so it is rather hard for me to learn AFL and its logic. I am wondering if someone has written a formula based on (Price * Vol).
Logically, when Price or Vol goes up, the chart (price * vol) goes up too, so this is a buy or uptrend signals. The reversal would be when price or volume goes down. I am wondering if the crossing of MA (Price*Vol) of 2 different period, would be buy or sell signals. Sometimes the peak of the chart happens when price keeps going down, eventhough the volume goes up (when "big guys" exhausted to keep price from falling). This is should be strong a reversal (sell) signals.
 
Frankly, I dont know how to put my idea into AFL. Can someone formulate my idea into indicator and explorer for all of us?
 
Regards,
kethek


Never miss a thing. Make Yahoo your homepage.
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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




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

__,_._,___