I thought I'd post an EA created from the JETS framework I'm developing. Not ready to release all the source code yet, as I have a long way to go. But this teaser EA is still mildly useful in it's own right, and I've included the root source file to show what it will look like creating an EA using JETS in the future. In case you missed it JETS stands for Joinable & Extendable Trading System, and is coded in ObjectQuotes.
To install:
- Unzip the package
- Obviously put JETS-TeaserEA.ex4 into the experts directory
- Put JETSLib.dll into the experts\libraries directory
- Create a directory under experts\files called JETS (and do the same under tester\files if you want to test it with the strategy tester
- Put JETS.rsc and JETS-TeaserEA.rsc under the newly created JETS directory(s)
- Feel free to look at the root source JETS-Teaser.oq if you're a coder
Description:
This is a very simple EA that, when applied, will immediately enter either a buy trade or a sell trade. The "mildly useful" aspect of this EA is the trade management. But the real purpose is to begin to show how JETS will, at some point in the hopefully not too distant future, be configured to do pretty much whatever you want it to.
JETS is resource driven via a dynamic set of resources directly tied to oq template classes. This is the Joinable/Extendible aspect of JETS. Join the pieces you want. If you don't like what it has, extend it for your own purposes. You can look at the .rsc files in notepad to get a glimpse of it. It may not make much sense at the moment, but eventually it will all get documented.
Inputs:
Side - you have to specify 1 or -1 for buy/sell
Resources - the name of the resource file
Trader - the name of the trader object to use
Lots - trade size
TakeProfit - number of pips for TP
Stoploss - number of pips for SL
TrailLock - Pips into the money when trailing stop kicks in (using a trailing trader)
Magic - just leave it -550 for the moment
VisualSlow - if you want to slow things down in tester visual mode, increase number
How to use:
By default it's set to Trader.Simple. You can currently select one of four traders as follows:
Trader.Simple
This is a brain dead trader that puts the TP/SL values. Nothing too exciting.
Trader.Movable
This does the same thing as simple, but allows you to double-click the TP or SL line and move it dynamically on the chart, causing the underlying TP/SL to move.
Trader.Trailer
Once TrailLock is reached, it will set SL to BE plus one pip. Then trail the trade by TrailLock-1 pips. Before it locks the trailing stop, it uses Stoploss as the initial stoploss.
Trader.MovTrail
Same as Trader.Trailer, but allows you to double-click and grab the SL line at any time to move it. Once you move it, it knows you have control and will no longer automatically trail. If you have moved it and want the auto trailer to kick in again, just delete the line and it will reappear.
Enjoy!
JETS-Teaser.zip
You do not have the required permissions to view the files attached to this post.