Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
The Donchian Channel indicator was created by Richard Donchian. It uses the highest high and the lowest low of a period of time to plot the channel. The Donchian Channel Expansion/Contraction Ratio indie was written by cclsys (who hasnt been on the forums lately: I miss his posts) and does a projection of the channel which are ouputted as 'ProjectHigh' and 'ProjectLow'. What I would like to do is 'capture' those two values to use them in a strategy. Unfortunately I am lacking in insight into the correct way to do it efficiently.
First off, I dont want the values of 'ProjectHigh' and 'ProjectLow' as at a # of 'barsago' : I need the last few 'ProjectHigh' and 'ProjectLow' values which might have been spread out over 20 or more bars: one use would be a chop tool to see how much the values are 'stepping' from the second previous value of 'ProjectHigh' or 'ProjectLow' to the most recent value of 'ProjectHigh' and 'ProjectLow' etc: on the image are the values of three 'ProjectLow' that are representing 4 range bars of travel.
Can any kind soul at least 'notepad' what code would be best to use. I thanks much in advance for code contributions.
// LONG Entry Condition 1:
if ( entryOrder1 == null && entryOrder2 == null
// Enters long limit order when DRC projecthigh has two steps up
&& _phibk0 > _phibk1 && _phibk1 > _phibk2
I thought I had something working , but when I tried to run the compiled strategy it wont show any trades... when I take out all the 'double's I put in the strategy runs and shows trades.. back to the drawing board with no idea how to make it work ... any code gurus able to take a stab at this please?