| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | How to Pass Variables into Indicators Idea: How to determine future levels of an indicator using fixed range charts Had an idea and thinking it would be relatively simple, but turns out not to be. Using an indicator, I will use RSI as an example, how to determine what price in the future will do to rsi. This idea works because of the range bars being fixed. example: 4 Tick Range setting on the es. Trader knows what price the current bar will complete, and from there can see at what price the next bars will complete. So, say current bar has a high of 1205 and a low of 1204.50 ( 2 ticks, so 2 remain to complete the bar and another tick to start new bar). So as it stands, the bar will complete either at 1205.50 (needing 1205.75 to start a new bar) or 1204 (1203.75 to start new bar) So from there, one could "know" what prices future bars will be closing at. Of course this will change when the bar makes a new high or low, so they really arent predicting anything. Just simple math. The problem I have is passing that future level into RSI. Code: r=absvalue(high-low); rem=range_setting-(r/mintick); buy=High+(rem*mintick)+mintick; Code: RSIH= RSI (Close, RSI_Length); I need to compare what the rsi could be vs what it is in the previous bars. I tried something like: Code: If lastbaronchart then CC=Buy else CC-Close Code: RSIH= RSI (CC, RSI_Length); Any help is much appreciated. | ||
| |
|
| | #2 | ||
![]() | I can two mistakes in the following lines.. Code: If lastbaronchart then CC=Buy else CC-Close Second:- else CC-Close It should be like this:- Code: If lastbaronchart then CC= Buy1 else CC = CC- close; | ||
| |
|
| The Following User Says Thank You to EasyTrader_I For This Useful Post: | ||
trader273 (09-30-2010) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Indicators | Stock.Jock | Technical Analysis | 10 | 09-21-2010 10:21 AM |
| Coding Cumulative Delta & Volume Delta Indicators for Multicharts | tucciotrader | Coding Forum | 15 | 08-03-2010 03:52 PM |
| Using Indicators On Different Time Frames | Stock.Jock | Technical Analysis | 2 | 07-25-2010 08:43 PM |
| Does OEC Provide Market Breadth Indicators? | marketstudent | Open E Cry | 0 | 06-13-2010 01:47 PM |