Search found 7 matches

Go to advanced search

by frien_dd
Mon Feb 22, 2021 11:54 am
Forum: Pine Script Q&A
Topic: Input function to disable script on higher time frame
Replies: 4
Views: 2159
 
Jump to post

Re: Input function to disable script on higher time frame

Hi @frien_dd, Nice Script! A great example of how to use an input to enable/disable output. Since your loadIndicator is using timeframe.multiplier it would still show output on Daily,Weekly,and Monthly charts. Since those periods have a multiplier of 1, which is less than your inputMaxInterval of 3...
by frien_dd
Mon Feb 22, 2021 10:10 am
Forum: Pine Script Q&A
Topic: Symbol Exchange time Syncing to indicator
Replies: 1
Views: 670
 
Jump to post

Re: Symbol Exchange time Syncing to indicator

This is where I am currently with this script. I am trying to read the output from the GMTOffset to change the input for time_int_01. Any advice guidance will be gratefully received. //@version=4 study("Initial Balance Testing GMT", overlay=true) var int GMTOffset = hour(timenow) - hour(timenow, "GM...
by frien_dd
Fri Feb 19, 2021 11:25 am
Forum: Pine Script Q&A
Topic: Symbol Exchange time Syncing to indicator
Replies: 1
Views: 670
 
Jump to post

Symbol Exchange time Syncing to indicator

Good afternoon all, I have been working on the below script on crypto currencies to see how market opening times could affect price action. I would like to take it a step further and enable its use on non crypto currencies. But the issue I have is that the alignment changes depending on the symbols ...
by frien_dd
Fri Feb 19, 2021 11:00 am
Forum: Pine Script Q&A
Topic: Input function to disable script on higher time frame
Replies: 4
Views: 2159
 
Jump to post

Re: Input function to disable script on higher time frame

inputMaxInterval = input(30, title="Hides sessions above specified time")
loadIndicator = timeframe.multiplier <= inputMaxInterval

I use the above in my script, I hope it helps
https://uk.tradingview.com/script/Jv0Rt ... -Openings/
by frien_dd
Mon Feb 15, 2021 10:15 am
Forum: Pine Script Q&A
Topic: Convert day of week and time to other timezone
Replies: 10
Views: 4939
 
Jump to post

Re: Convert day of week and time to other timezone

Below is the link to the end product. https://uk.tradingview.com/script/Jv0RtKiB-Pre-and-Market-Openings/ The change to the below code resolved the issue: Previous: var AsiaDOpenPA = 0.0 if AsiaDOpen if not AsiaDOpen[1] AsiaDOpenPA := open Now: var AsiaDOpenPA = float(na) if AsiaDOpen and not AsiaDO...
by frien_dd
Thu Jan 28, 2021 1:39 pm
Forum: Pine Script Q&A
Topic: Convert day of week and time to other timezone
Replies: 10
Views: 4939
 
Jump to post

Re: Convert day of week and time to other timezone

This is were I am at with this atm. It displays Market Regular Opening hours as per: For daily and weekly. Tokyo https://www.tradinghours.com/markets/jpx/hours London https://www.tradinghours.com/markets/lse/hours New York https://www.tradinghours.com/markets/nyse/hours It displays perfectly on the ...
by frien_dd
Fri Dec 11, 2020 10:33 pm
Forum: Pine Script Q&A
Topic: Convert day of week and time to other timezone
Replies: 10
Views: 4939
 
Jump to post

Convert day of week and time to other timezone

Good evening, If possible I am trying to understand how to use "dayofmonth", I think that's what I am after. That means most built-in variables and functions don't look at our price chart's time zone, but instead return values in the time zone of our chart's instrument . So if your indicator uses th...

Go to advanced search