Find Jobs
Hire Freelancers

TradeStation EasyLanguage Strategy

$30-250 USD

Completed
Posted over 10 years ago

$30-250 USD

Paid on delivery
I'd like the following strategy coded for TradeStation in EasyLanguage for backtesting purposes. I. This EA should be coded to use two Moving Averages of my choosing (MA1 and MA2). II. All of the following must be true for a Buy Order: a. For the previous bar: 1. The bar close is greater than MA1. 2. The minimum distance between bar close and MA1 is x pips. 3. The maximum distance between bar close and MA1 is y pips. 4. The bar close is above the bar open OR the bar close is above mid-point of the bar. 5. Both MA1 and MA2 are not sloping downward. 6. It must be at least 1 bar after the previously closed buy trade. b. For the current bar: 7. Current price must be equal to or greater than the previous bar’s close. 8. After the previously closed buy trade (if such a trade exists): a. The price must have dropped X pips below MA2. b. Any previous bar must have closed X pips below MA2. Inputs (a) & (b) can be set to true or false to enable or disable them. III. All of the following must be true for a Sell Order: a. For the previous bar: 1. The bar close is less than MA1. 2. The minimum distance between bar close and MA1 is x pips. 3. The maximum distance between bar close and MA1 is y pips. 4. The bar close is below the bar open OR the bar close is below mid-point of the bar. 5. Both MA1 and MA2 are not sloping upward. 6. It must be at least 1 bar after the previously closed sell trade. b. For the current bar: 7. Current price must be equal to or less than the previous bar’s close. 8. After the previously closed sell trade (if such a trade exists): a. The price must have risen X pips above MA1. b. Any previous bar must have closed X pips above MA1. Inputs (a) & (b) can be set to true or false to enable or disable them. IV. Other conditions for buy and sell trades: a. Only one trade can be in the market at a time. V. Exit Conditions Each exit can be set to true and false to be enabled or disabled. If more than one condition is selected, the first that occurs will cancel the other(s). Definition of Risk (R): Buy order Risk = entry price – previous bar’s MA2 Sell order Risk = previous bar’s MA1 – entry price 1. Stop loss = X% of R 2. Profit target =X% of R 3. Breakeven stop after X% of R pips profit. 4. Trailing stop: TrailStopStartpips = X% of R, Trail By X% of R.
Project ID: 4954815

About the project

4 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I have completed many Easy Language projects on Freelancer. Please check my feedback.
$122 USD in 5 days
5.0 (3 reviews)
2.7
2.7
4 freelancers are bidding on average $564 USD for this job
User Avatar
. .
$333 USD in 7 days
5.0 (6 reviews)
5.0
5.0
User Avatar
Interested!
$1,578 USD in 30 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Please read pm.
$222 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
West Bloomfield, United States
5.0
30
Payment method verified
Member since Jul 28, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.