So if my understanding of Lists is correct, I can call a foreach loop in the BarUpdate section to scan my list of entry prices to see if the current tick is:
1. Doing nothing (ie, price is within the MFE and MAE bounds or the stop has already been hit)
2. Increasing MFE (ie, price has gone higher than the stored MFE value and the stop has not been hit)
3. Decreasing MAE (ie, price is continuing to move away from the entry price but the stop has not yet been triggered)
4. Setting MAE to the stop value (ie, price moved more than the stop value away from the entry price, which will lock the MAE at the stop price--which for backtesting purposes will assume no slippage, which I will take into consideration in Excel)
I am expecting somewhere in the neighborhood of 200-400 entries per CL contract cycle, and I would expect that when I run this sucker that NT will need to chug on it for a LONG time. However, the time that I have to wait for NT to chug will be nothing compared to my current method of doing this all by hand.
Do you know of any NT7 indis that use the List class that I could look at to get a better idea of how they work?
I'm always open to suggestions on ways to improve my ideas, so please let me know if you have any additional ideas.
I REALLY appreciate your help,
Aventeren

Comment