TrendTraderPRO Indicator for ThinkorSwim

Alkkkz

New member
VIP
I'm looking for the TrendTraderPro script for ThinkorSwim. Is there anyone who has it and tested it?

home1-1.png
 
Solution
Code:
# TS_HeikinAshiSmoothed
# http://www.thinkscripter.com
# [email protected]
# Last Update 30 June 2013

### YOU MUST HAVE THE STYLE SETTING FIT STUDIES ENABLED ###
#hint: The style setting Fit Studies must be enabled tou use these bars.

input period = 21;
input hideCandles = NO;
input candleSmoothing = {default Valcu, Vervoort};

DefineGlobalColor("RisingMA", color.uptick);
DefineGlobalColor("FallingMA", color.downtick);
#DefineGlobalColor("RisingMA", color.cyan);
#DefineGlobalColor("FallingMA", color.yellow);

input movingAverageType = {default TEMA, Exponential, Weighted, Hull, Variable, SIMPLE};

def openMA;
def closeMA;
def highMA;
def lowMA;

switch (movingAverageType) {
case Simple:
    openMA = compoundValue(1...

Christopher84

Active member
VIP
@Christopher84 As I've stated previously, I keep track of paper trade orders in a spreadsheet... At times I use the price from Active Trader where I would enter and exit, or use set Limits as my exits... Other times I use worst case scenario of using a candles high as the entry and the closing candles low... And other times I use hl2 for both entry and exit... I just haven't found a truly realistic method of backtesting using AddOrder... While paper trading takes longer, I feel that it is far more accurate from a real world perspective... EVen using Paper Trading isn't realistic due to how entry and exit orders are processed...
" Even using Paper Trading isn't realistic due to how entry and exit orders are processed..." couldn't agree with this statement more. I personally feel that paper trading is intentionally misleading on the results specifically with order processing. It gets more people "in the boat" to use the platform. When I started looking at trading I opened a paper trading account to learn and in just a little over 3 months, I hade a profit of $677K. The sad thing is that the strategy didn't work primarily due to how the orders were processed but there was no way for me to know that unless I started live trading. It seems to me that there really isn't a reasonable method for backtesting. All of them stand a high potential to be misleading at best. Back to the drawing board for me. I may consider live trading in small orders to test more accurately once I have the strategy and order processing fully ironed out. I appreciate your input on the topic.
 

rad14733

Well-known member
VIP
@Christopher84 One option would be to trade live but only a couple chares instead of a full 100 share lot... That would at least allow yu to test your strategy with relatively low risk... I've never done it myself but have entertained the idea for testing Conditional Order logic...Food for thought...
 

homeplate2

New member
VIP
Hi Everyone. I too just looked at this TrendTradePro Indicator and when I saw the price I said no way can I afford that. So, I came to the site that I saw folks talk about on the Chat Rooms of Think or Swim and joined as I could afford what was being asked. I wanted to know if our usethinkscript group was able to tell what this other person was talking about.

I am really new at this and started it as my high school project but have been able to get together some money to get started in think or swim but wanted to see what this is about. BenTen and others like Spider on the TOS chat rooms along with horserider helped in the past and BenTen has been great in helping me read the code but I am a long way from writing code as I tend to mistype a lot of the stuff. Is there a script for this and if so where would it be in our website forums. Sincerely, Homeplate2
 

homeplate2

New member
VIP
I was also trying to write a script which would show the price moving higher. I was using the wizard as a model.

Here is what I came up with so far. I have to go to bed as my Mom is getting pissed. If you can take a look at this and give me an idea as to where I'm going wrong that would be wonderful. Thank you again J007RMC and always thank you very, very much BenTen and mobius and spider, and everyone! For helping.

PS. I was going to call it Climb The Ladder but thought I would ask for suggestions as you all are better at this then I am right now.

Thank you


Code:
#Wizard input: price
#Wizard text: is at least
#Wizard input: percent
#Wizard text: %
#Wizard input: Choice
#Wizard text: than
#Wizard input: length
#Wizard text: bars ago


input price = close;
input percent = .015;
input Choice = {default greater, less};
input length = 1;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent1 = .025;
input Choice1 = {default greater, less};
input length1 = 3;

def x = 100*(price==price1 / price1[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = .50;
input Choice3 = {default greater, less};
input length = 5;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 1.25;
input Choice4 = {default greater, less};
input length = 7;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 3.00;
input Choice5 = {default greater, less};
input length = 11;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}
input price = close;
input percent = 7.00;
input Choice6 = {default greater, less};
input length = 14;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 10.00;
input Choice7 = {default greater, less};
input length = 16;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 12.00;
input Choice8 = {default greater, less};
input length = 18;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}


input price = close;
input percent = 15.00;
input Choice9 = {default greater, less};
input length = 21;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}

input price = close;
input percent = 18.00;
input Choice10 = {default greater, less};
input length = 22;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}


input price = close;
input percent =20.00;
input Choice11 = {default greater, less};
input length = 25;

def x = 100*(price / price[length]-1);
plot scan;

switch (Choice){
case greater:
    scan = x >= percent;
case less:
    scan = x <= -percent;
}
 

Similar threads

Top