NexusFi: Find Your Edge


Home Menu

 





Up Day VS Down Day


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,380 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Up Day VS Down Day

  #1 (permalink)
dorourke5
Longford + Leinster/Ireland
 
Posts: 3 since Sep 2016
Thanks Given: 1
Thanks Received: 0

Hi All,
I am trying to write some code that will determine whether it is an up day or a down day to initiate a buy or a sell signal. I would like to be able to back test on the 1 hour time frame. The opening bar i like to use is 6 GMT. If price is above the open of the 6 GMT bar i would like to allow buy signals only and if below the 6 GMT bar allow sell signals only.
That would allow me to determine if it is an up/down day. Would it be possible to add another filter eg. up/down week using the same criteria (6 GMT Open on a Monday morning)
Any help greatly appreciated,
Thank you,
Dave.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
dorourke5
Longford + Leinster/Ireland
 
Posts: 3 since Sep 2016
Thanks Given: 1
Thanks Received: 0


Hi All,
I hope i am not posting incorrectly or to the wrong thread. I am very new to easy language (and this site) and every time i googled a "how to in easy language" this forum came up with people very willing to help out with programming queries. So i signed up as a member to get some help programming.
The method i am trying to code for back testing purposes is called DIBS (Daily inside Bar Strategy) It is a fairly simple system and a lot of detail wrote about it on another Forex forum which i will not reference or link too unless i am allowed too.
I will describe the method as best as I can and maybe somebody might help me out with the easy language coding? If i am going about his wrong please let me know as i do not want to offend anybody or the site etiquette, Thanks.

DIBS:
1. If price is higher than the 6 GMT open = Up day = Buys only
2. If price is Lower than the 6 GMT Open = Down day = Sells only.
3. Only trade between the hours of 6 GMT - 1600 GMT
4. If an inside bar is established (1 Hr Time-frame but works across many Diff TF's) Buy/Sell (depending on rules 1 & 2) at the top/bottom + 1 pip of the Inside Bar and place your stop loss at the opposite end of the Inside bar.
5. Set take profit for half your lot size the same distance as your initial risk away from your entry. This in essence gives a free trade when hit.
6. For the remainder use a trailing stop (20 EMA) to try and capture as much of the trend as possible.

Look forward to hearing from some of the experienced programmers who maybe able to help me out,
Many Thanks,
Dave.

Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628

Hi dorourke5,

if you post your code you have written until now, someone might be able to steer you in the right direction. If you are looking for something to write the code for you you might want to post in the Want your [AUTOLINK]EasyLanguage[/AUTOLINK] indicator created, free? thread. The access might require an elite membership, though.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
dorourke5
Longford + Leinster/Ireland
 
Posts: 3 since Sep 2016
Thanks Given: 1
Thanks Received: 0


ABCTG View Post
Hi dorourke5,

if you post your code you have written until now, someone might be able to steer you in the right direction. If you are looking for something to write the code for you you might want to post in the Want your EasyLanguage indicator created, free?[/URL] thread. The access might require an elite membership, though.

Regards,

ABCTG

Hey ABCTG,
Many thanks for your help. I believe i need to be an Elite member to access that forum. I will upload the code i attempted myself and hopefully somebody might be willing to lend a hand,
Thanks again,
Dave.

Reply With Quote




Last Updated on September 14, 2016


© 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
no new posts