NexusFi: Find Your Edge


Home Menu

 





EasyLanguage entry in active bar on previous bar's low


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
tolu7325
Brno Czech Republic
 
Posts: 2 since Jul 2013
Thanks Given: 0
Thanks Received: 0

Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Has anyone taken trading from Agnieska Wood - Ahead Coach?
Psychology and Money Management
How reliable is ninjatrader 8?
NinjaTrader
Value Area Low (VAL) – Lowest Price Level of Profile V …
NinjaTrader
Help re translation of ninjascript to EL
NinjaTrader
Pivot Indicator based on Level2 data
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
1 Minute Man
107 thanks
ApexTraderFunding.com experience and review
105 thanks
In futures why does price turn so hard against you
42 thanks
GFIs1 1 DAX trade per day journal
30 thanks
Joes Trading Garage
19 thanks
  #2 (permalink)
 
mengelbrecht's Avatar
 mengelbrecht 
copenhagen, denmark
 
Experience: Intermediate
Platform: multicharts, Ninja
Broker: IB & Kinetick
Trading: ES
Posts: 47 since Aug 2010
Thanks Given: 16
Thanks Received: 24


tolu7325 View Post
Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you


Hi
Have a look at this coding example from big mike



Big Mike is using a "limitprice" which is defined as lowest(low, 10) meaning the lowest of the previous 10 bars, replace 10 with 1 and you have the low of the previous bar

hope this helps

rgds
mengelbrecht

Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 486
Thanks Received: 1,629


Hi tolu7325,

with intrabar order generation "next bar" will be the next tick, so you can use this.

Regards,
ABCTG



tolu7325 View Post
Hello guys I'd like to ask you to help me with following issue:

I'm trying to code an entry (daily timeframe) which will be generated during active bar/day at yesterday's price (high or low). The problem probably is, that the signal is valid AFTER new day's opening - I have IntraBarOrderGeneration=TRUE setting, however it doesn't help... see why:

This is what I have:

IntraBarOrderGeneration=TRUE;
Buy ( "long" ) this bar at low[1] stop; {<- I want to have BUY STOP order placed right after OPEN on previous bar's LOW, the OPEN is lower that previous LOW}

Unfortunately it return's error: 'Stop and limit orders can only be placed for the next bar' <-but I want to enter in active bar, not next one.

Please help me guys, it will be really appreciated!
Thank you


Follow me on Twitter Reply With Quote
  #4 (permalink)
tolu7325
Brno Czech Republic
 
Posts: 2 since Jul 2013
Thanks Given: 0
Thanks Received: 0

Hello guys,

Thanks a lot for our tips!
Here is what works:

[IntrabarOrderGeneration = true]
if Open < low[1] then
Buy ( "Ops" ) next bar at low[1] stop;

Reply With Quote




Last Updated on July 29, 2013


© 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