NexusFi: Find Your Edge


Home Menu

 





resume trading at the first profit


Discussion in TradeStation

Updated
    1. trending_up 1,351 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?
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 BERN Algos 
Bologna Italy
 
Experience: Advanced
Platform: nt8
Broker: NinjaTrader
Trading: futures
Posts: 66 since Jun 2022
Thanks Given: 13
Thanks Received: 67


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