NexusFi: Find Your Edge


Home Menu

 





Strategy question - client vs server


Discussion in EasyLanguage Programming

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




 
Search this Thread

Strategy question - client vs server

  #1 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10

I started to use easylanguage/tradestation. Honestly, I can't stand it. But it is what it is. I think TOS and TV are infinitely more intuitive. TS feels like it was designed for windows 95.

Anyway, if I create a strategy that places an order, does the stoploss and target price go to TS's server? Or is it the client app on my computer that handles it?
 
Code
		SetProfitTarget(tgamt);
		SetStopLoss(slamt);
		Sellshort this bar at close;
I am really hoping the answer is TS server. If I lose electricity, or internet, I could also lose a boatload of money if this is handled on the client side.

Assuming it is on the server side, what about the next piece of code. This one I am 100% sure it is handled by the client. How can I rewrite this to be server based? Assuming it is even possible.

 
Code
if MarketPosition <> 0 and BarsSinceEntry >= maxBars then begin
	if MarketPosition = 1 then Sell All Contracts Next Bar At Market;
	if MarketPosition = -1 then Buytocover All Contracts Next Bar At Market;
end;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
20 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #2 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT and Stellar
Broker: Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,048 since Dec 2013
Thanks Given: 4,384
Thanks Received: 10,205


gurji View Post
I started to use easylanguage/tradestation. Honestly, I can't stand it.

If your not a programmer its very friendly. If you can program it can be a little limiting. Initially I was impressed with Tradestation but the more I dug in the more limitations I found. Not sure what, if anything, is out there that is better though.

gurji View Post
Anyway, if I create a strategy that places an order, does the stoploss and target price go to TS's server? Or is it the client app on my computer that handles it?

I believe its your choice. 1/ Desktop 2/ Tradestation Network 3/ Sent to Exchange

gurji View Post
How can I rewrite this to be server based? Assuming it is even possible.

It's not. Code runs on the client. If you want this you'll need to run the client co-located or in the cloud.

Reply With Quote
Thanked by:
  #3 (permalink)
gaffster
Melbourne, FL
 
Posts: 1 since Aug 2022
Thanks Given: 0
Thanks Received: 1



gurji View Post
I started to use easylanguage/tradestation. Honestly, I can't stand it. But it is what it is. I think TOS and TV are infinitely more intuitive. TS feels like it was designed for windows 95.

Anyway, if I create a strategy that places an order, does the stoploss and target price go to TS's server? Or is it the client app on my computer that handles it?

There is a checkbox setting in the strategy "properties>>automation" dialog box that sends stop orders to the tradestation server.
Search YT for "The Art of TradeStation - The Strategy Automation Process" for details. And there is always the cell phone app as a last resort.

Reply With Quote
Thanked by:
  #4 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10


SMCJB View Post
If your not a programmer its very friendly. If you can program it can be a little limiting. Initially I was impressed with Tradestation but the more I dug in the more limitations I found. Not sure what, if anything, is out there that is better though.

I believe its your choice. 1/ Desktop 2/ Tradestation Network 3/ Sent to Exchange

It's not. Code runs on the client. If you want this you'll need to run the client co-located or in the cloud.



I think you hit the nail on the head about being a programmer or not. I am a programmer, and ,maybe that's why I don't like it. I like pine script in tradingview a lot better, although it also has limitations. Would love to be able to call external scripts as includes. But overall, I like working with it a lot better.
I am currently working on connecting to the tradestation and IBRK APIs and running my strategies in PHP. But also am exploring the ideas of using the tradingview alerts with webhooks that trigger orders with the API. My concern though is the speed and execution time of it all.

As for having the choice of desktop, ts network, or exchange, where is this set?

Reply With Quote
Thanked by:
  #5 (permalink)
gurji
Miami, Florida
 
Posts: 35 since Apr 2022
Thanks Given: 1
Thanks Received: 10


gaffster View Post
There is a checkbox setting in the strategy "properties>>automation" dialog box that sends stop orders to the tradestation server.
Search YT for "The Art of TradeStation - The Strategy Automation Process" for details. And there is always the cell phone app as a last resort.

I'll take a look at that, thanks!

Reply With Quote




Last Updated on September 18, 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