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)
Thinkscript Strategies not executing orders immediately
I was testing out a simple strategy and I noticed a huge lag between when price action should send a buy/sell signal and when it's actually showing it's happening. In the attached picture you can see it should sell the moment the candle open is below the red line but it actually waits a few bars before doing that. Is there a reason why? Also is there a way to do this with the spot price instead of the open or close?
Can you help answer these questions from other members on NexusFi?
I'm not sure why it would be waiting a few bars. Thinkscript defaults to filling on the next bar if you don't specify another price to fill at (close,open,high[1],low[1] etc). If you post or PM me your code I can take a closer look and try to find the cause.
Any TOS script strategy does not plot buys and sells at appropriate real price level. This cause false results in the strategy report so it is indeterminable if the results are better or worse than it should actually be. Did you find a way to replace the standard input (open or close) with the price level where strategy condition triggers? At similar price where 'alerts' is printed on message center?
This mite be late to the party, however I have found that if you have placed a delay or offset in you strategy this will cause a delay in you buy and sell orders
Maybe late, but all I want to know if we can print the real price (not open or close), where condition triggers. Otherwise we get false results. Example of a simple strategy:
input length = 21;
plot EMA = ExpAverage(close, length);
EMA.AssignValueColor(if EMA > EMA[1] then Color.Green else Color.Red);
AssignPriceColor(if EMA > EMA[1] then Color.Green else Color.Red);
Not really, we can get buy/sell signals printed at the current bar where condition is met.
You can see that on the chart above, but we can only set open[-1] or close[-1], so...
my request is if there's a way to print order when condition met,
as we get on message center when condition alert is triggered.
I tried placing a [-1] in my strategy did not make a diff
I have seen a script that gave a print out of Open, High, low, close, but i think it was in TradeStation
If TOS was automated and buying the price at cross over, it should be in the show report I would think. my strategy looks to trade alot, Would really be nice to automate.