NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 7 of 7
Search: Posts Made By: RandomDude
Forum: ThinkOrSwim August 29th, 2022, 01:44 PM
Replies: 14
Views: 2,841
Posted By RandomDude
In most languages I've learned how to use a "for"...

In most languages I've learned how to use a "for" statement to this kind of thing, but not available in thinkscript. Maybe another way, but I don't know it.

There is BarNumber(), and believe can...
Forum: ThinkOrSwim August 26th, 2022, 12:06 AM
Replies: 14
Views: 2,841
Posted By RandomDude
Strictly today. For 30 days, only way I can...

Strictly today. For 30 days, only way I can think would be to create separate formulas for each day and then reference those number of specific periods back within each formula, e.g. close[26],...
Forum: ThinkOrSwim August 25th, 2022, 06:35 PM
Replies: 14
Views: 2,841
Posted By RandomDude
First, I am posting as study so you can figure...

First, I am posting as study so you can figure out if it is giving you the open and close that you want. After you load the study, set the PercentageChange parameter to 100, so the Signal plot...
Forum: ThinkOrSwim August 25th, 2022, 11:46 AM
Replies: 14
Views: 2,841
Posted By RandomDude
I think I can make it work quickly if you want to...

I think I can make it work quickly if you want to specify the time frame in the scan, but if you want to parameterize the time frame, then would need MTF code, which I am not familiar with, so have...
Forum: ThinkOrSwim August 25th, 2022, 09:24 AM
Replies: 14
Views: 2,841
Posted By RandomDude
You have to hold the value to access it later, so...

You have to hold the value to access it later, so for example this is what I use to plot the daily open, which doesn't change during the day.

input StartTime = 0630;
...
Forum: ThinkOrSwim August 24th, 2022, 12:02 PM
Replies: 14
Views: 2,841
Posted By RandomDude
Do you want to do this in real-time, or for any...

Do you want to do this in real-time, or for any time after the fact? For example, are you always running it at 12:01? or could be running it at 1:52 for 11:45 to 12:00?

If always running at...
Forum: ThinkOrSwim August 24th, 2022, 10:09 AM
Replies: 14
Views: 2,841
Posted By RandomDude
Only played with scanning a little bit, but I...

Only played with scanning a little bit, but I think what you want is something like:

def cond= if (open - close)/open > .2 then 1 else 0;
plot signal= cond;


I don't think you need all the...
Showing results 1 to 7 of 7

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top