Hi,
I would be thankful if someone can help me with the following question:

I would like to construct an indicator for the selling/buying pressure by 
calculating for each trade the price*size product and giving this product a 
positive or negative value, depending on the price origin - ask price or bid 
price.
The next step is to sum these values in 1 min time slots.

For example, this code calculates the product :

TimeFrameSet(-1); //for tick time base
Bid = GetRTData("Bid");
Ask = GetRTData("Ask");
Last = GetRTData("Last");
Vol = GetRTData("TradeVolume");

Const=0;
if (Last==Ask)
        Const=1;
if  (Last==Bid)
       Const=-1;
 
product= Const*Last*Vol;

The question is how to continue this code by summing up these product values 
during each 1 min bars?
 
Thanks a lot,
Ronen


Reply via email to