Strategy question - client vs server - futures io
futures io



Strategy question - client vs server


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Strategy question - client vs server

(login for full post details)
  #1 (permalink)
gurji
Miami, Florida
 
 
Posts: 25 since Apr 2022
Thanks: 1 given, 8 received

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 futures io?
TradingView like VOLUME indi for Ninja8 ?!?!
NinjaTrader
convert sierra chart graph to Ninja traders 8
NinjaTrader
Effect of Bitcoin price on Altcoins
Crypto Futures
Realtest vs Amibroker
Platforms and Indicators
East West Petroleum Corp - EW (Canada) – EWPMF (USA) …
Stocks and ETFs
 
 
(login for full post details)
  #2 (permalink)
 SMCJB 
Legendary Market Wizard
Houston, TX
 
Experience: Advanced
Platform: TT and Stellar
Broker: Primary Advantage Futures. Also ED&F and Tradestation
Trading: Primarily Energy but also a little GE, SI, Bitcoin & Ether
 
Posts: 4,661 since Dec 2013
Thanks: 3,981 given, 9,340 received


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
The following 2 users say Thank You to SMCJB for this post:
 
(login for full post details)
  #3 (permalink)
gaffster
Melbourne, FL
 
 
Posts: 1 since Aug 2022
Thanks: 0 given, 1 received



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
The following user says Thank You to gaffster for this post:
 
(login for full post details)
  #4 (permalink)
gurji
Miami, Florida
 
 
Posts: 25 since Apr 2022
Thanks: 1 given, 8 received


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
The following user says Thank You to gurji for this post:
 
(login for full post details)
  #5 (permalink)
gurji
Miami, Florida
 
 
Posts: 25 since Apr 2022
Thanks: 1 given, 8 received


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


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Strategy question - client vs server


Last Updated on September 18, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts