Hi Cone and Eugene,
I am currently use this code to create a stop order for the next day.
CODE:
Please log in to see this code.
I'd like to test changing it to a Stop Limit Order that would generate stop limit orders for the current day, the way LDL2 generates Buy Limit orders each day, in stead of having to wait for the next day.
Is there an example of a Stop Limit order code that I could follow to set this up?
Thanks again for all your help
Tobey
Size:
Color:
Size:
Color:
Hi Eugene,
The link has a warning
"Warning: all the methods can be used for backtesting only."
I was looking to generate a list of orders that would create stop orders that would be trigger if the price dropped below the 50 day moving average.
This code generates an order list at a penny below the 50 day moving average.
CODE:
Please log in to see this code.
I'll test to see if it make a difference vs selling the next day.
Thanks again
Tobey
Size:
Color:
QUOTE:
The link has a warning
"Warning: all the methods can be used for backtesting only.""Warning: all the methods can be used for backtesting only."
Yes, one cannot use these functions for live trading.
QUOTE:
I was looking to generate a list of orders that would create stop orders that would be trigger if the price dropped below the 50 day moving average.
Then you might want to leverage the knowledge of the price at which the price would drop below the SMA:
RevEngSMA_TC (Tomorrow's Close)Funny, I already answered your question which seems to be pretty similar:
Creating a stop loss based on an indicator value
Size:
Color:
Hi Eugene,
Thanks for the helpful links
Tobey
Size:
Color: