NexusFi: Find Your Edge


Home Menu

 





Inside Bar order entry


Discussion in EasyLanguage Programming

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




 
Search this Thread

Inside Bar order entry

  #1 (permalink)
chris2980
New Orleans
 
Posts: 3 since Apr 2012
Thanks Given: 1
Thanks Received: 0

Hi all, I have just recently started to get interested in automating my strategy, as sometimes its impossible to manually input 10+ order entries when a new bar begins and then manage them. I always write down stocks that meet my criteria throughout the day, and after manually backtesting every day for the past month has always turned a profit, so I am excited about potentially getting it automated. I dont have any prior programming experience so I thought Easylanguage would be a good starting point.

Anyways, im trying to write basic strategies to get more comfortable, and what I am currently trying to do is buy/short after an inside bar. I want to buy at the high of the inside bar + .01 as long as it hasnt traded below the low of the inside bar.

After researching i can only find code similar to:

Buy ("l1") 100 shares next bar at H of data1 + 0.01 stop;

but this doesnt have any criteria that the long position will only be initiated as long as it hasnt traded below the low of the inside bar. Can anyone point me in the right direction?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
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
41 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #3 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58



chris2980 View Post
Hi all, I have just recently started to get interested in automating my strategy, as sometimes its impossible to manually input 10+ order entries when a new bar begins and then manage them. I always write down stocks that meet my criteria throughout the day, and after manually backtesting every day for the past month has always turned a profit, so I am excited about potentially getting it automated. I dont have any prior programming experience so I thought Easylanguage would be a good starting point.

Anyways, im trying to write basic strategies to get more comfortable, and what I am currently trying to do is buy/short after an inside bar. I want to buy at the high of the inside bar + .01 as long as it hasnt traded below the low of the inside bar.

After researching i can only find code similar to:

Buy ("l1") 100 shares next bar at H of data1 + 0.01 stop;

but this doesnt have any criteria that the long position will only be initiated as long as it hasnt traded below the low of the inside bar. Can anyone point me in the right direction?

you will need a couple of conditional statements to get you on the right track

eg.

 
Code
if low > low[1] and close > high[1] then
BUY...

Reply With Quote
  #4 (permalink)
chris2980
New Orleans
 
Posts: 3 since Apr 2012
Thanks Given: 1
Thanks Received: 0

thank you, that makes sense. i was using if h>h[1] then buy by mistake.

Reply With Quote




Last Updated on September 25, 2012


© 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