New Experimental Expert Help!!!

To add comments, please log in or register
FX-Hedger
419
FX-Hedger  

Hello!

can anyone help me by making an Expert that stacks many(adjustable) Buy and sell orders one above/below the other at an adjustable distance, and takes profit when net floating profit/loss reaches a set(adjustable) dollar value.

After taking profit/loss it cancels all orders and places new buy and sell orders again at current market price.

If floating positions goes on for a week without reaching the targets then it closes all open positions and cancels all orders and places new ones.

A trailing stop may help.

This EA will probably need a few indicators. But let's do that later.

Thank you.

Sergey Golubev
Moderator
114658
Sergey Golubev  

You posted this request 3 times in different sections yesterday in the evening.

We have it here for example.

And 3rd same post was deleted.

FX-Hedger
419
FX-Hedger  

Sorry

newdigital:
You posted this request 3 times in different sections yesterday in the evening.

We have it here for example.

And 3rd same post was deleted.

Sorry newdigital,

I didn't know I could not do that.

It's just that this idea is a stupid one, and no one wants to even respond to my post.

It won't happen again.

Sergey Golubev
Moderator
114658
Sergey Golubev  
FX-Hedger:
Sorry newdigital,

I didn't know I could not do that.

It's just that this idea is a stupid one, and no one wants to even respond to my post.

It won't happen again.

Usually I am collecting all the requests and are sending these requests to the programmers which i know. So somebody will respond anyway.

Besides it is Friday.

Igor Durkin
7041
Igor Durkin  

Hi,

I began to write EA for your needs.

Don't worry

Igor

FX-Hedger
419
FX-Hedger  

Thank you guys

Thank you all for your help.

FX-Hedger
419
FX-Hedger  

Working on this?

Anyone working on this?

Please let me know.

Thanks.

Igor Durkin
7041
Igor Durkin  

Hi,

I think that it is possible to live test the first version of this expert.

In this expert there are many questions concerning opening and closing of orders. Bugs are complex enough for finding at backtesting.

This version is without using trailing stops.

Igor

Files:
FX-Hedger
419
FX-Hedger  

Thank you

igorad:
Hi,

I think that it is possible to live test the first version of this expert.

In this expert there are many questions concerning opening and closing of orders. Bugs are complex enough for finding at backtesting.

This version is without using trailing stops.

Igor

Dear Igor,

Excellent!!

Thank you very much.

I will live test it from tonight.

I will let you know how it does.

Thanks again,

You are the man!!!

FX-Hedger
419
FX-Hedger  

Inactive

igorad:
Hi,

I think that it is possible to live test the first version of this expert.

In this expert there are many questions concerning opening and closing of orders. Bugs are complex enough for finding at backtesting.

This version is without using trailing stops.

Igor

Hi Igor,

Expert is gray clolour,

does not attach to chart!!

Sergey Golubev
Moderator
114658
Sergey Golubev  
FX-Hedger:
Hi Igor,

Expert is gray clolour,

does not attach to chart!!

It works.

Compile it using MetaEditor.

And place Tracert.mqh file in include folder before compiling (do not compile this Tracert.mqh file, just place in the folder - un'zip this file first).

Settings:

extern string Expert_Name = "---- HedgExpert_v1 ----";

extern int Magic = 10000;

extern int Slippage = 6;

extern bool Trace = false; // Trace Switch

extern string Main_Parameters = " Trade Volume & Trade Method";

extern double Lots = 0.1; // Lot size

extern int OrdersMode = 1; // 1- Limit Orders; 2 - Stop Orders

extern string Data = " Input Data ";

extern string TimeFrame = "D1"; // Working period (M1,M5...H1...D1...W1)

extern double NetProfit = 50; // Net Profit

extern double NetLoss = 50; // Net Loss

extern double InitialStop = 10; // Initial Stop in pips

extern double TakeProfit = 20; // Take Profit in pips

extern double FirstOrdGap = 20; // Gap for Pending Orders from High/Low in pips

extern int NumberOrds = 2; // Number of orders to place

extern double StepSize = 10; // Pips between orders

extern string MM_Parameters = " MoneyManagement by L.Williams ";

extern bool MM=false; // ММ Switch

extern double MMRisk=0.15; // Risk Factor

extern double LossMax=1000; // Maximum Loss by 1 Lot
Files:
tracert.zip 2 kb
123
To add comments, please log in or register