Intraday stop under yesterday day low - EasyLanguage Programming | futures io social day trading
futures io futures trading


Intraday stop under yesterday day low
Updated: Views / Replies:1,569 / 6
Created: by Orjan Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Intraday stop under yesterday day low

  #1 (permalink)
Trading Apprentice
Stockholm Sweden
 
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: Futures, forex
 
Posts: 20 since Apr 2012
Thanks: 12 given, 2 received

Intraday stop under yesterday day low

I'm anayzing in 120 minutes and want my Stop Loss one tick under the low of:

- the day before the day I enter the trade

...or

- the same day I enter the trade

....whichever is lowest.


The stop should be there all the time, until the profit target or the stop is reached. I have tried with this:

If Marketposition = 1 and low < lowD(1) then exitlong

but then the stop is trailing, which I don’t want.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
North Bay
 
Futures Experience: Intermediate
Platform: NT, ToS, MulitCharts
Broker/Data: NT, TD
Favorite Futures: ES, CL
 
Posts: 39 since Nov 2011
Thanks: 10 given, 9 received



Orjan View Post
I'm anayzing in 120 minutes and want my Stop Loss one tick under the low of:

- the day before the day I enter the trade

...or

- the same day I enter the trade

....whichever is lowest.


The stop should be there all the time, until the profit target or the stop is reached. I have tried with this:

If Marketposition = 1 and low < lowD(1) then exitlong

but then the stop is trailing, which I donít want.


Try something like this for 1 tick less than yesterdays low

 
Code
                            
varsticksize    MinMove PriceScale );


if 
marketposition 1 then begin
    Sell next bar At CloseD
(1) - (ticksizelimit;
end

Reply With Quote
The following user says Thank You to skiman721 for this post:
 
  #4 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received


Orjan View Post
I'm anayzing in 120 minutes and want my Stop Loss one tick under the low of:

- the day before the day I enter the trade...or- the same day I enter the trade....whichever is lowest.

The stop should be there all the time, until the profit target or the stop is reached. I have tried with this:

If Marketposition = 1 and low < lowD(1) then exitlong but then the stop is trailing, which I donít want.

Orjan - This statement will sell at the lower of the two prices. This assumes the Day is defined from midnight to midnight. It is more complex if you want different session times.

If you are not already using, you should consider use of the Intrabar Order Generation. For backtesting, the Bar Magnifier should be used.
 
Code
If MarketPosition = 1 then Sell next bar at MinList ( LowD(0) , LowD(1)) - TickSize Stop ;
Len

Reply With Quote
The following user says Thank You to Lampert for this post:
 
  #5 (permalink)
Trading Apprentice
Stockholm Sweden
 
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: Futures, forex
 
Posts: 20 since Apr 2012
Thanks: 12 given, 2 received

skiman and Lampert,

Thanks, maybe I was unclear. I want the stop to stay at the same price every day until exit. If I buy july 3 I want the stop to stay one tick under the lowest of july 2 and 3, even july 4, 5, 6 and so on as long as I have no exit .... I don't want a trailing stop.

I take care of the trailing with another signal.


Last edited by Orjan; June 24th, 2012 at 04:09 PM.
Reply With Quote
The following user says Thank You to Orjan for this post:
 
  #6 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received


Orjan View Post
skiman and Lampert,

Thanks, maybe I was unclear. I want the stop to stay at the same price every day until exit. If I buy july 3 I want the stop to stay one tick under the lowest of july 2 and 3, even july 4, 5, 6 and so on as long as I have no exit .... I don't want a trailing stop.

I take care of the trailing with another signal.

OK, Orjan. You may have solved the problem but here is some code that will hold a constant stop price after the position is opened.
 
Code
If MarketPosition = 0 then StopPrice = MinList ( LowD(0) , LowD(1)) - TickSize ;

If MarketPosition = 1 then Sell next bar at StopPrice Stop ;
Len

Reply With Quote
The following 2 users say Thank You to Lampert for this post:
 
  #7 (permalink)
Trading Apprentice
Stockholm Sweden
 
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: Futures, forex
 
Posts: 20 since Apr 2012
Thanks: 12 given, 2 received

Perfect Len! It works

I replaced "Sell" with "Exitlong"

Reply With Quote
The following user says Thank You to Orjan for this post:

Reply



futures io > > > > > Intraday stop under yesterday day low

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
EasyLanguage Code to stop strategy for the day skiman721 EasyLanguage Programming 12 June 23rd, 2012 02:18 PM
>50% win rate intraday with stop=target ? MyTraderAdvisor Currency Futures 8 June 3rd, 2012 07:11 PM
Yesterday Close Setup Buddha Emini Index Futures Trading 19 October 20th, 2010 08:52 AM
High/Low of yesterday plus/minus percentage j77777 NinjaTrader Programming 3 March 31st, 2010 10:10 PM
Hypothesis: Yesterday's high/low is (un)important caprica Traders Hideout 10 November 16th, 2009 04:32 PM


All times are GMT -4. The time now is 01:21 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-18 in 0.10 seconds with 19 queries on phoenix via your IP 54.92.201.232