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


Opening Range Custom
Updated: Views / Replies:305 / 2
Created: by simon14 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: 5 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)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,328 since Apr 2013
Thanks: 212 given, 755 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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

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


All times are GMT -4. The time now is 02:24 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-05-27 in 0.07 seconds with 19 queries on phoenix via your IP 54.196.17.193