NexusFi: Find Your Edge


Home Menu

 





Inside Bar order entry


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,397 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?
Ceasefire Collapse: Iran Fires 24 Missiles, Israel Hits …
Traders Hideout
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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


© 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