NexusFi: Find Your Edge


Home Menu

 





resume trading at the first profit


Discussion in TradeStation

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




 
Search this Thread

resume trading at the first profit

  #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?
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 BERN Algos 
Bologna Italy
 
Experience: Advanced
Platform: nt8
Broker: NinjaTrader
Trading: futures
Posts: 42 since Jun 2022
Thanks Given: 11
Thanks Received: 38


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts