rtrader
05-01-2010, 11:25 AM
During the formation of a range bar one can tell where the current bar might close and the next bar might open at any time. Obviously, this new price above or below the bar will change as the bar completes.
Based on the above I would like to "anticipate" where an oscillator, moving average or other indicator will change direction - from a slope down to slope up or vice versa. If it will change direction I would like a price marker or alert put on the chart.
With this information I can place a stop limit order at the new bar open price with a reasonable degree of confidence that it will be filled when the bar closes. I trade off small size range bars and need all the advance warning I can get.
Taking an MA as an example I would like to "insert" the next bar open price (both above and below) into the final element of the dataseries and calculate whether the MA will change direction up or down. These two prices would replace the normal current trading price.
What would be the best way of doing this? I'm not the greatest coder in C and any help with the dataseries manipulation bit (with some code if possible) would be really appreciated.
Thanks.
Based on the above I would like to "anticipate" where an oscillator, moving average or other indicator will change direction - from a slope down to slope up or vice versa. If it will change direction I would like a price marker or alert put on the chart.
With this information I can place a stop limit order at the new bar open price with a reasonable degree of confidence that it will be filled when the bar closes. I trade off small size range bars and need all the advance warning I can get.
Taking an MA as an example I would like to "insert" the next bar open price (both above and below) into the final element of the dataseries and calculate whether the MA will change direction up or down. These two prices would replace the normal current trading price.
What would be the best way of doing this? I'm not the greatest coder in C and any help with the dataseries manipulation bit (with some code if possible) would be really appreciated.
Thanks.