NexusFi: Find Your Edge


Home Menu

 





Inside Bar order entry


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
  #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


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