NexusFi: Find Your Edge


Home Menu

 





Position sizing codes


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
 ptcm 
Taiwan
 
Experience: Intermediate
Platform: MC
Posts: 77 since Jun 2010
Thanks Given: 8
Thanks Received: 17

running on a 1 min chart, I am trying to achieve 3 things

1) position gets stop out at the entry point

2) 6 minute after the initial entry is taken, if the position profit > $100, buy 2 additional contract at the close,

3) mkt close at 1615, all positions are closed at 1613 (exitlong doesn't work anymore) what is the new reserved word for exitlong or close out whatever position left because sometimes the no. of contract is an unknown number?

For some reason, 2) is not working.

Please help.


if barssinceentry > 1 and positionprofit <= 0 then sell ("Stop") this bar at close;

if barssinceentry =6 and positionprofit >100 then buy ("add 2") 2 contract this bar at close;

if time > 1613 and marketposition = 1 then sell ("Mkt Closed") this bar at close;


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
 
BDawg's Avatar
 BDawg 
Tampa FL
 
Experience: Advanced
Platform: Tradestation, TOS,Tradier
Broker: Tradestation,TD,Tradier
Trading: Options, ETFs, VIX, Indices
Frequency: Several times daily
Duration: Days
Posts: 15 since Oct 2010
Thanks Given: 64
Thanks Received: 11


(TradeStation? Not sure about MC???)

Did you enable the checkbox (and max entries field) that allows for multiple entries in the same direction?
This is found under Format/Strategies/Properties for all

HTH-


Reply With Quote




Last Updated on January 2, 2011


© 2026 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 - Downloads - Top
no new posts