Robert, Your code is brilliant !! It is far simpler than what I was doing. I have much to study. I will buy you a lunch or two ... Thanks, Garyby TraderBuddy - Trading Discussion
Hi Robert, I am resending it looks like part of original got cut off. The LONG entry and exit of the ThreeOutOneInStrategy works as follows: SETUP includes the 8 EMA is between the Keltner bands at all times during setup and trigger. The SETUP is three adjacent candles that close outside the Lower Keltner band followed by the TRIGGER candle which is the very next candle that closes insideby TraderBuddy - Trading Discussion
The LONG entry and exit of the ThreeOutOneInStrategy works as follows: From Keltner Channels set as ( ), the SETUP is three adjacent candles that close outside the Lower Keltner band followed by the TRIGGER candle which is the very next candle that closes inside the Keltner band. Enter long at this point. The LONG EXIT will be when the high of one of the following candles touches two tics bby TraderBuddy - Trading Discussion
HI, I uploaded image to my Google account. As you can see, the gray font is for entry but the stop loss occurred too soon and did not occur at lowest of 5 bars prior to long entry. I will be happy to add to your tip jar if you can help me sole this. Thanks, Garyby TraderBuddy - Trading Discussion
Hi Robert. It's getting closer, but does not appear to be looking 5 bars before trade was entered as you can see in screenshot below. The gray font is for entry but the stop loss occurred too soon. here is code for stop loss: # # JustSellStrategyFixedStopLoss # def sell = if close < open and close[1] < open[1] then 1 else 0; # if true, long trade is active rec FixedStopLoby TraderBuddy - Trading Discussion
Hi, I am developing a Thinkscript EXIT LONG script that will set the STOP LOSS value to be the lowest of the 5 bars prior to entering the trade.. It seems like the script always uses the lowest of the most recent 5 bars and not the 5 bars just prior to entering long. My incorrect script so far is: # # JustSellStrategyFixedStopLoss # def sell = if close < open and close[1] < opeby TraderBuddy - Trading Discussion