Tradestation EasyLanguage - Convert indicator (unprotected) to automated strategy
$100-500 USD
Cancelled
Posted over 12 years ago
$100-500 USD
Paid on delivery
I have a working indicator(this a **realtime-live only..so no way of backtesting** it) that i want to convert it to a strategy..planning to use this on a 2 or 5 minute chart and goal is to automate the trades.
I can share the indicator code if you are interested to take up this one. Have 3 conditions to be met while converting this indicator to strategy..
1. Don't get into a new trade(even if the initial entry criteria occurs again) when already a trade is in place..basically, i need to be flat to get in to a new trade
2. Buy at the close of the bar (indicator bar is blue -- please see the attached image)
Sell short at close of the bar (indicator bar turns yellow -- please see the attached image)
3. Put GTC order for profit tgt and stop loss..usually my target or stop loss would get hit in 10-60 minutes..but still wanna have a GTC order if possible.
Profit tgt = 20 ticks from entry price (instruments to use are AD and ES)
Stop loss = 10 ticks from entry price
I am attaching a sample image showing blue(signal to go long) and yellow(signal to go short) bars in the indicator...In the image, the blue bar occurs in succession but we will not enter again in the second blue bar as we already have a trade from the first blue bar and assuming it is still active.
P.S. I know that all it takes to convert an indicator to strategy is to replace the 'plot' statements with buy/sell order statements and add few more lines of code for the conditions to be met(if at all)..So, i would appreciate if you could come up with your best quote as I believe this should be a simple task for an expert.