NexusFi: Find Your Edge


Home Menu

 





a simple entry exit bar


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one johni with 5 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 cory with 1 posts (0 thanks)
    4. looks_4 RM99 with 1 posts (0 thanks)
    1. trending_up 3,456 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

a simple entry exit bar

(login for full post details)
  #1 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

Would someone know how to code the the pattern below

Pattern - H>H[1] and L<L[1] and next bar open<H and next bar open>L

Entry - Once the pattern is satisfied withe the current open is <H and >L put a buy stop order on the high

Fill - With price move to the high and order is filled, put a sell stop order on the pattern L for exit

Profit target - The profit target would be the different between the high and low add to the high of the bar
- The high and low calculation for the profit target is pertaining to the each pattern high and low and is not DYNAMIC

The exit is either profit target or the low of the pattern

The orders are put for each satisfying pattern till filled

Each pattern is independent of the previous pattern for order putting

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Volume profile TradeStation
EasyLanguage Programming
Request for MACD with option to use different MAs for fa …
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
30 thanks
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
27 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
Deaddogs Stock Trading
11 thanks

(login for full post details)
  #3 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704



johni View Post
Would someone know how to code the the pattern below

Pattern - H>H[1] and L<L[1] and next bar open<H and next bar open>L

Entry - Once the pattern is satisfied withe the current open is <H and >L put a buy stop order on the high

Fill - With price move to the high and order is filled, put a sell stop order on the pattern L for exit

Profit target - The profit target would be the different between the high and low add to the high of the bar
- The high and low calculation for the profit target is pertaining to the each pattern high and low and is not DYNAMIC

The exit is either profit target or the low of the pattern

The orders are put for each satisfying pattern till filled

Each pattern is independent of the previous pattern for order putting

I can code this...but to clarify.....

You're saying that last bar, the H is higher than the bar previous and the low is lower than the bar previous (an oustide bar on both ends essentially).

Then as an additional entry criteria, you want the open to be less than the high of of the previous bar and more than the low of the previous bar?

Secondly, as I'm understanding...there's only a buy order....no sell order...is that correct?

Thirdly, so I understand, your stop is the low of the "pattern" bar previous to entry and the profit target is the H[1]-H[2] or the difference between the two?

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
Reply With Quote
(login for full post details)
  #4 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

-- You're saying that last bar, the H is higher than the bar previous and the low is lower than the bar previous (an oustide bar on both ends essentially).

Yes

-- Then as an additional entry criteria, you want the open to be less than the high of of the previous bar and more than the low of the previous bar?

The next bar open is < H and >L
With next bar open the H and L of the pattern would be consider H[1] L[1] because the current bar is the next bar open currently

-- Secondly, as I'm understanding...there's only a buy order....no sell order...is that correct?

The sell is opposite

-- Thirdly, so I understand, your stop is the low of the "pattern" bar previous to entry

Yes

and the profit target is the H[1]-H[2] or the difference between the two?

No the profit target is H-L+H of the pattern

Attached Thumbnails
Click image for larger version

Name:	1.JPG
Views:	210
Size:	4.4 KB
ID:	43728  
Reply With Quote
(login for full post details)
  #5 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

Orders would be input for each pattern individually

Reply With Quote
(login for full post details)
  #6 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

RM99

Would you code the pattern? Or the pattern is difficult to code?

Reply With Quote
(login for full post details)
  #7 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,096 since Jun 2009
Thanks Given: 877
Thanks Received: 8,085

you may want to use search box to search for outside bar.

Reply With Quote
(login for full post details)
  #8 (permalink)
johni
canada
 
Posts: 29 since Jun 2011
Thanks Given: 0
Thanks Received: 0

There are some post on outside bars but no code for backtesting

Reply With Quote





Last Updated on July 23, 2011


© 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