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)
I didn't set the array for L2_Buyer in SC.default. Yes I need to store last Close when the last bar closed above the DI and the bar before was below it.. this is for L2 buyer array and if there is no condition then the array values doesn't change
Thanks a lot for the prompt response. I will think why the normal arrays cannot execute as a subgraph. I am thinking also how to draw a line between the last two points of L2_Buyer and DI_Buyer when there is an input condition to show the divergences between the lines ..
You would be better off re-writing the Donchian Channel Study in a separate study outside of your trading system and just import the signal once you have all the features you want.
It makes for clearer separation of the different functions for debugging and performance.
I am wondering how to draw a line from L2_Buyer[Index-1] to L2_Buyer[Index-2] and another line from DI_Buyer[Index-1] and DI_Buyer[Index-2] at the condition of buy entry.
I think this will be need a new subgraph declared within the body not as an input and will need to set it as draw_style to line but how to define the start and end point statement .. Not sure where is that documented ?
There is no reason that SCFloatArray cannot work -- as u stated it is all zeroed all the time -- the array of the imported study subgraph may be defined in another type . I will check the code of the Donchain study as well
Nah they are all float arrays. Last guess is that they are being re-written on every call. Just make them a SCSubgraphRef. Why are you not doing that??
What is really interesting -- I coded the same system in the spreadsheets and it provides more signals that are confirmed with visual reviews ! this is what is really making me wonder what is the root cause of that discrepancy ~
I found a proof that there is wrong computation - by viewing L2_Buyer and L2_Seller there is missed ones from the system calculation as shown in the rectangles in the chart attached ...
I tried every possible combination of the Index-x comparisons but it didn't help --- I think the import of the Donchian study subgraphs is not correct for some reason ~
I did attach how the L2_Buyer and L2_Seller should look as indicated from the spreadsheet system calculation ... what is wrong with our ACSIL code ?
It worked as the spreadsheet when I copied and pasted the dochian channel code within the trading system.
The idea is get price divergences with demand index or any other study line that I need to import ..so importing should work to be independent from the study to compare with... I will not copy and paste each study code within the system.
I think there might be an issue with the Get function to import the arrays .. this is not what I expected from ACSIl... This is too basic and we need to work it around !!!