I'm trying to add parts of 2 scripts together but I'm getting a host of errors.
Any help is welcome.
Trying to add this ROC code:
CODE:
Please log in to see this code.
to the LDL2 script
CODE:
Please log in to see this code.
Size:
Color:
There are 2 different entries, AtMarket and AtLimit. How exactly do you plan to merge/combine these parts? Replace the LDL entry with that ROC code, or take a new Position once the condition is true?
Size:
Color:
I wan to keep the LDL limit but have priority given to the highest ROC.
Size:
Color:
To quote the WealthScript Programming Guide:
QUOTE:
Generally speaking, Position.Priority is difficult to apply when backtesting end-of-day stop and limit Strategies. That's because the actual trade sequence should be prioritized by the time of day at which the actual price attains the order price.
So you may want to look at one of these solutions:
Setting Priority for AtStop/AtLimit Orders
Size:
Color:
Hi Eugene, could you give an example for the LimitPriorityLong method? Thank you.
Size:
Color:
Hi Niels,
CODE:
Please log in to see this code.
From what I recall, author
has replaced the method with IntradayFillPriorityEstimate so it's advised to use that method instead.
Size:
Color:
Thank you very much, Eugene. As I don't have intraday data, I cannot appy the replaced approach. But it should be the next step of the project. :-)
Size:
Color: