Trading System with 2 contracts..... - futures io
futures io futures trading



Trading System with 2 contracts.....


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Trading System with 2 contracts.....

(login for full post details)
  #1 (permalink)
Turin + Italy
 
 
Posts: 81 since Feb 2020
Thanks: 11 given, 53 received

Hi,

I read in a book and also in an issue of Futures Truth magazine, that using 2 contracts instead of just one, the Equity Line can improve by becoming more regular;

therefore, I wanted to ask if someone can help me to insert in this Trading System 2 contracts, but the first contract will close in profit after 100 points (or + 0.45 % from the entry price),
while the second contract will follow the T.S. rules.

I thank you in advance.

------------------------------------------------------

Inputs: Length(50), len2(4), len3(4), Amount(1700);

vars:
daysintrade(0),atr(0),ptargmult(1),longliqpt(0), shortliqpt(9999999), protlongstop(0), protshortstop(0), lowestlow3(0),highesthigh3(0),bed
(0),sed(0),stb(0), sts(0);

atr=avgtruerange(Length);
lowestlow3=lowest(low,len2);
highesthigh3=highest(high,len3);
bed=0;
sed=0;

if (close>=close[1]) then sed=1;
if (close<=close[1]) then bed=1;
if(bed=1) then
begin
stb=open of tomorrow +.5*(highesthigh3-lowestlow3);
sts=open of tomorrow -(highesthigh3-lowestlow3);
end;

if(sed=1) then
begin
stb=open of tomorrow +(highesthigh3-lowestlow3);
sts=open of tomorrow -.5*(highesthigh3-lowestlow3);
end;

if (marketposition=1 and barssinceentry=0) then
protlongstop=entryprice(0)-3*atr[1];
if (marketposition=-1 and barssinceentry=0) then
protshortstop=entryprice(0)+3*atr[1];

if (marketposition<>marketposition(1)) then
begin
ptargmult=1;
longliqpt=0;
shortliqpt=999999;
end;

if (marketposition=1 and high[1]>entryprice(0)+ (3*atr[1])) then
begin
longliqpt=entryprice(0);
end;
if (marketposition=-1 and low[1]<entryprice(0)- (3*atr[1])) then
begin
shortliqpt=entryprice(0);
end;

buy tomorrow at stb stop;
sellshort tomorrow at sts stop;

SetStopLoss(Amount);

-------------------------------------------------------------

Reply With Quote

Can you help answer these questions
from other members on futures io?
Getting started with OF-Footprint
Traders Hideout
Simple formula from Metastock to Tradingview
Platforms and Indicators
NT8 connectivity to XFinity / Comcast
NinjaTrader
Financial Modeling Prep (free to use: financialmodelingprepcom) API
Trading Reviews and Vendors
Polygonio developers and reviews
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
141 thanks
How did you learn to trade?
101 thanks
2020 profit and loss results
40 thanks
Finally Turning the Corner, tha "its 80% Psychology" thing...
27 thanks
Is NT8 the right platform for scalping?
26 thanks
 
(login for full post details)
  #2 (permalink)
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
 
Posts: 86 since Sep 2016
Thanks: 7 given, 31 received

Check out the webinar from Chris with ABC trading group. The relevant spot is at about minute 27. https://www.youtube.com/watch?v=TgfsY01rdS4

Follow me on Twitter Reply With Quote
The following user says Thank You to kjhosken for this post:
 
(login for full post details)
  #3 (permalink)
Turin + Italy
 
 
Posts: 81 since Feb 2020
Thanks: 11 given, 53 received



Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Trading System with 2 contracts.....


Last Updated on December 24, 2020


Upcoming Webinars and Events
 

Journal Challenge!

February
 

Battlestations!

March
     



Copyright © 2021 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