added a version in which you can define a separate timeframe for the base pivots. For instance if you display 1 minute charts you can calculate the mase pivots in the 5 minute timeframe or 60 minute. This seems to filter out bad trades:
http://wisestocktrader.com/indicatorpasties/1426-gapfil
correction: http://wisestocktrader.com/indicatorpasties/1427-gapfil2
http://wisestocktrader.com/indicatorpasties/1426-gapfil
correction: http://wisestocktrader.com/indicatorpasties/1427-gapfil2
i still have to solve a few problems with this code. You have to fine tune it a bit for yourself. If you expect a gap zone and you do not see one then try to adjust the strength of the mini pivots to for instance 2 instead of 1 or adjust the Minimum gap factor to a lower number and see what works best
http://wisestocktrader.com/indicatorpasties/1428-gapfill3
http://wisestocktrader.com/indicatorpasties/1428-gapfill3
Thanks a ton for these codes !!!
:clap::clap::clap: