Remote Data Mining And Management Job In Data Science And Analytics

Amibroker AFL backtesting script using Object Oriented Programming

Find more Data Mining And Management remote jobs posted recently Worldwide

I need an afl code that is used in the trading software amibroker. This file should help me backtest my trade idea. The buy and sell signals are simple moving average crossovers. Buy the security when 5 EMA crosses 13 EMA and goes above it and sell the security when the 5 EMA crosses below the 13 EMA. This is quite simple.

But the complex part comes next. I want to check if the previous trade was profitable or not. If the previous trade made a loss, then I want to get the highest highs and lowest lows of
1. All the candles between the open and close of the previous trade.
2. 10 candles before previous trades entry.
3. 8 candles after previous trades close.

The program should find the highest high and lowest low values among all candles from the 3 groups described above.

A new trade will be opened only if

1. the previous trade made a profit
Or,
2. the previous trade made a loss but the new trades entry price is above the highest high or below the lowest low of the candles from the 3 groups described above.

The above rule ensures that we are not taking a trade in a sideways market. A trade will be taken only if price has moved away from the previous losing trades range.

I would appreciate if you can write a simple code to carry out this task. I may have to edit this program myself from time to time. So I would appreciate if you use simple formulas to get this done. Adequate commenting along the use of functions necessary so that I can understand what is going on. The deliverable will be a complete .afl file that can be run on any futures database in amibroker.

Please do not use functions/processes that significantly slows down the software. For example, Amibroker suggests the following:
There are following areas of AFL programming that require some attention if you want to write multithreading-friendly AFL formulas:
1. Avoiding the use of OLE / CreateObject
2. Reducing use of AddToComposite / Foreign to minimum
3. Efficient and correct use of static variables
4. Implementing pre-processing / initialisation in the Analysis window
5. Accessing ---Equity symbol


If you think the price I offered is too low, please feel free to ask for a higher price.
About the recuiter
Member since Mar 14, 2020
Russian Escorts
from Viljandi, Estonia

Candidate shortlisted and hiredHiring open till - Sep 11, 2020

Work from Anywhere

40 hrs / week

Fixed Type

Remote Job

$34.76

Cost

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

Tutorials For Trading/Analysis Platforms (MT4/5, NinjaTrader, MetaStock, AmiBroker, Wealth-Lab..)

Experienced users of financial trading and analysis platforms (such as MT4/5, NinjaTrader, Amibroker etc ) to create a series of tutorials for beginner to intermediate level users.

Please apply to discuss the topics of the tutorials.

Senior Full Stack Web Developer with back-end focus

This concerns programming work for ERP / CRM booking software targeted at the entertainment industry. All customers needs are set with a clear job descripton by us in Bitbucket.

We are looking for a Full Stack developer, who can independentl...read more

Amibroker AFL backtesting script using Object Oriented Programming

I need an afl code that is used in the trading software amibroker. This file should help me backtest my trade idea. The buy and sell signals are simple moving average crossovers. Buy the security when 5 EMA crosses 13 EMA and goes above it and sell t...read more

Amibroker assistance needed

Looking to setup some backtesting code on Amibroker.
My requirement is : For some condition on a symbol (Banknifty), select the correct option strikes and take a trade on it.

The point I am stuck at is to understand how to trade on a d...read more