NexusFi: Find Your Edge


Home Menu

 





resume trading at the first profit


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
OMEGAA
milan italy
 
Posts: 10 since Nov 2022
Thanks Given: 0
Thanks Received: 0

Hi, I can't tell tradestation (easylanguage), stop trade when take stop loss, and
resume trading at the first profit.
thank you very much


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Prop Firms Are Banning Gold Trading as Record Prices Mak …
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 BERN Algos 
Bologna Italy
 
Experience: Advanced
Platform: nt8
Broker: NinjaTrader
Trading: futures
Posts: 64 since Jun 2022
Thanks Given: 13
Thanks Received: 63


OMEGAA View Post
Hi, I can't tell tradestation (easylanguage), stop trade when take stop loss, and
resume trading at the first profit.
thank you very much

I can tell you the way I developed on NT8.
- include a simple equity curve management in the strategy (*)
- duplicate the strategy, one running on the real account one on a Sim account


(*) The strategy can either run as MASTER or SLAVE by a mode selection parameter. The MASTER runs on the sim account continuously, providing a Boolean feedback to the SLAVE one, depending on the last trade.

if last_trade_GAIN > 0
tell ENABLE to the SLAVE strategy
else
tell DISABLE to the SLAVE strategy


In NT you can use a global variable or a read/write file. I decided for the second, using file information for developing and debug.


Reply With Quote
  #3 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146



BERN Algos View Post

In NT you can use a global variable or a read/write file. I decided for the second, using file information for developing and debug.

You must use Global Variables to communicate between your SIM and REAL accounts.
You can use the "PositionProfit()" variable to check if the recent trade was a profit or loss.
Use PosTradeEntryDateTime(vIX,0) to get the entry date/time.


Reply With Quote




Last Updated on November 8, 2022


© 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