Opening Range Custom - EasyLanguage Programming | futures.io
futures.io futures trading


Opening Range Custom
Started: by simon14 Views / Replies:188 / 2
Last Reply: Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Opening Range Custom

  #1 (permalink)
Elite Member
TORONTO
 
Futures Experience: Advanced
Platform: multi charts
Favorite Futures: crude cl
 
simon14's Avatar
 
Posts: 13 since Sep 2016
Thanks: 4 given, 2 received

Opening Range Custom

So i have taken a couple diff systems and combined them, iam fairly new at EL and iam getting stuck atm trying to make the Open range midpoint the stop for the system any ideas what iam missing ?? It produces the entries but not the exits. In the future i want to make daily pivot extensions the targets but thats one day at a time here lol. I Have underlined the new code i added where the problems are most likely located. This is one of big mikes strategies iam changing to my method slowly while i learn EL.

thank you

Inputs:
startTime ( 8 ),
endTime ( 11 ),
startTradeTime ( 11 ),
stoploss ( 16 ),
target1 ( 32 ),
target2 ( 16 ),
target3 ( 72 ),
datramt ( 1 );

variables:
sessHi (0),
sessLo (0),
sessOp (0),
sessMid (0);

if date <> date[1] then begin
sessOp = Open;
sessLo = Low;
sessHi = High;
sessMid = (( high + low ) * 0.50 );

end;

if time < endTime * 100 then begin
if High > SessHi then SessHi = High;
if Low < SessLo then SessLo = Low;
end;

SetStopContract;

SetStopLoss( stoploss * BigPointValue );

// entries


if Close > SessHi then begin
Buy 3 Contracts Next Bar At Market;

end;
if Close < SessLo then begin
Sellshort 3 Contracts Next Bar At Market;
end;

// order management

if marketposition = 1 then begin

if currentbar < sessMid then sell 3 contracts next bar at open;

if marketposition = -1 then begin

if currentbar > sessMid then sell 3 contracts next bar at open;

end;

end;

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)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,185 since Apr 2013
Thanks: 198 given, 678 received


Hi simon14,

with the code below you check for a bar number being above/below a price as an exit condition. While the code will verify and eventually trigger signals, I doubt that this is what you intend to do.
 
Code
if currentbar < sessMid then sell 3 contracts next bar at open;

if currentbar > sessMid then sell 3 contracts next bar at open;
For your entries you check for "Close" being above/below a trigger price and this is what I'd suggest to test for your exits, too.

Regards,

ABCTG

Reply With Quote
The following 2 users say Thank You to ABCTG for this post:

Reply



futures.io > > > > > Opening Range Custom

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

An Afternoon with FIO member Massive l

Elite only
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Range with Fibs trendfriendpa ThinkOrSwim 0 June 5th, 2016 12:12 PM
Opening Range Low steve2222 Terms (Glossary) 0 February 6th, 2016 04:01 PM
Opening Range Top steve2222 Terms (Glossary) 0 February 6th, 2016 03:57 PM
Opening Range High steve2222 Terms (Glossary) 0 February 6th, 2016 03:57 PM
Opening Range steve2222 Terms (Glossary) 0 February 2nd, 2016 04:22 PM


All times are GMT -4. The time now is 10:36 PM.

no new posts
Page generated 2017-01-18 in 0.08 seconds with 20 queries on phoenix via your IP 174.129.78.73