Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm looking for someone to program an automated strategy in TradeStation. My apologies if this is not the right area of the forum to post about it. Cheers!
Can you help answer these questions from other members on NexusFi?
Hello, I am programming on tradestation since 20 years. If I can do something for you, let me know what do you need and I will let you know if I can do it.
(Please excuse my english because I am french
Orlie
Hello, hope you can help.
Here is something I would like to be programmed in EasyLanguage to do automated trading in TradeStation.
Let's say I have two hypothetical strategies that I like to use to trade QQQ at the same time.
1. (Data1 is QQQ 5-min bars)
If AverageFC(C,20) crosses over AverageFC(C,50) then buy ("LE-MAcross") next bar at market;
If AverageFC(C,20) crosses below AverageFC(C,50) then sell short ("SE-MAcross") next bar at market;
SetStopLoss(100);
2. (Data1 is QQQ 1000sh-volume bars)
If Close > AverageFC(C,20) and Close < Low[1] then buy ("LE-Retrace") next bar at market;
If Close < AverageFC(C,20) and Close > High[1] then sell short ("SE-Retrace") net bar at market;
SetStopLoss(250);
(These strategies are for example use only, they don't have all the detail needed for actual trading. I just wrote them out of thin air applying very simple trading strategy concepts without really backtesting them, so they are likely not profitable).
Somehow TradeStation does not allow trading more than one strategy on the same symbol at the same time. I think there are EasyLanguage techniques to get around that. IF someone can please write an EasyLanguage program for me to do this, that would be great. Let me know if there is fair charge for this. Thanks.
-----
There has been no response to my request above, probably due to lack of interest because I said the two strategies may not be profitable without backtesting. My intent for showing the strategies above were just as sample strategies for those programmers who can use them to add /write some code so TradeStation will allow them to be traded in the same account.
To stimulate interest to those who can code what I would like to have per above, I slightly modified my strategy codes above and ran a backtest on them. Each strategy seems to show nice profits for at least the past 6 months. Hopefully a capable programmer can add / write code for me to allow TradeStation to trade them in the same broker account. The modified strategies are below --
{Strategy 2. (Data is QQQ 6-minute bars. From 1/1/2022 till today)}
If Close < Average(C,20) and Close > High[1] then buy ("ReverseUp") next bar at market;
If Close > Average(C,20) and Close < Low[1] then sell short ("ReverseDown") next bar at market;
SetStopLoss(1000);
For simplicity and for the programmer's convenience, I even used the same code for Stategy 1 and Strategy 2, on a different bar type.
{Strategy 1. (Data is QQQ Classic Renko 0.5 brick size. From 5/25/2022 till today. TS data allows only 6 months back for non-time bars)}
If Close < Average(C,20) and Close > High[1] then buy ("ReverseUp") next bar at market;
If Close > Average(C,20) and Close < Low[1] then sell short ("ReverseDown") next bar at market;
SetStopLoss(1000);
Here are the equity curves for each. (Caution -- These strategies have not been optimized or validated OOS. Don't trade them without your own valuation and testing. Do so at your risk.)
If a programmer can do what I want and will need to charge me, please let me know. Thanks.
Nice equity curves. However, you cannot trade the same instrument (QQQ) with two separate trading systems in the same account.
Two alternatives:
1) move to Emini futures and trade one system with NQ and the other system with MNQ
2) get a separate brokerage account and trade one system with one account and the other system with the other account.
Your liking the equity curves means a lot to me. Thanks.
Your suggestions are great. But ...
For number 1) I am already doing that in my futures account.
For number 2) So far trading in multiple accounts is the only solution I am able to do. However I am still hoping somebody will have a way using EasyLanguage techniques (including OOEL) to do this in one account. My goal is to increase the opportunity in achieving a smoother combined equity curve, and one account is less capital intensive than two.
The problem as I see it are opposing signals. If one system takes a long position and the other a short position the result is no position. In the end profit from a long position (or loss) is negated or offset by a loss or profit from the short position, it’s a wash, but could throw the program into a weird loop??
Just a thought ….
I previously used two systems, fast and slow, but segregated my account, one would be for all long signals and the other for short positions. Psychologically it was better for me to trade the opposing signals rather then just going flat.