Dark Theme
Light Theme
Welcome to NexusFi: the best trading community on the planet, with over 200,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 -- discounts are available after registering.
-- The NexusFi team
(If you already have an account, login at the top of the page)
Updated September 27, 2021
trending_up
3,207 views
thumb_up
2 thanks given
group
4 followers
forum
5 posts
attach_file
0 attachments
September 19th, 2021, 02:43 PM
Verona Italy
Posts: 7 since Sep 2021
Thanks Given: 2
Thanks Received: 4
Hi to everyone,
i would like to understand if there is a kind of code to avoid any trade during the NFP .
At the moment the only solution that i found is specify for each dayofweek the NFP date
eg
if dayofweek <> 0211008 and dayofweek <> 0211105 and dayofweek <> 0211203 then buy next bar at high stop
if dayofweek <> 0211008 and dayofweek <> 0211105 and dayofweek <> 0211203 then sellshort next bar at low stop
Are there any other "smart" solution ?
Many Thanks
R.
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
September 26th, 2021, 07:07 PM
Houston TX
Legendary Market Wizard
Experience: Advanced
Platform: TT Stellar & Tradestation
Broker: Primarily Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals, U308 and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,247 since Dec 2013
Thanks Given: 4,591
Thanks Received: 10,545
NFP being Non Farm Payroll?
Isn't Non Farm Payroll first Friday of the month? If so something like (quasicode)
Code
Var: IsNFPDay(FALSE);
If ( DayofMonth(date) < 8 and DayofWeek(date) = Friday ) then IsNFPDay = TRUE else IsNFPDay = FALSE.
If not(IsNFPDay) then trade away
September 26th, 2021, 07:50 PM
Lyon/France
Posts: 23 since Aug 2012
Thanks Given: 1
Thanks Received: 14
hi may be simply :
Code
condition1 = DayOfWeek(date) = 5 and Month(date) <> Month(date[5]);
September 27th, 2021, 10:45 AM
Verona Italy
Posts: 7 since Sep 2021
Thanks Given: 2
Thanks Received: 4
SMCJB
NFP being Non Farm Payroll?
Isn't Non Farm Payroll first Friday of the month? If so something like (quasicode)
Code
Var: IsNFPDay(FALSE);
If ( DayofMonth(date) < 8 and DayofWeek(date) = Friday ) then IsNFPDay = TRUE else IsNFPDay = FALSE.
If not(IsNFPDay) then trade away
Next month ( October 2021 ) NFP are not in first Friday of Month 01.10.2021 ot 10.01.2021 but 08.10.2021 or 10.08.2021
September 27th, 2021, 10:46 AM
Houston TX
Legendary Market Wizard
Experience: Advanced
Platform: TT Stellar & Tradestation
Broker: Primarily Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals, U308 and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,247 since Dec 2013
Thanks Given: 4,591
Thanks Received: 10,545
Is that because the 1st Friday is the 1st? Is there an actual rule on the date?
September 27th, 2021, 11:02 AM
Verona Italy
Posts: 7 since Sep 2021
Thanks Given: 2
Thanks Received: 4
mmm.. let me say.. in all website / article etc.. i always read first friday of month.. but yes next month could be an exception since we are on the 1st of Month..
So to avoid "going crazy" your suggestion is ok
Many Thanks
R.
Last Updated on September 27, 2021