Moving AveragesRe: Timmy's Expert advisor service

71
Hello Dear Timmy;
First of all, I apologize because I can't speak English well!
I need tow functions:

1)A function that calculates the amount of profit or loss of last N open orders:

Code: Select all

  double LastNorderProfit(int N , int typeOfOrder)
{
...
return(SumOflast_N_orderProfit)
}

==================
[color=#0000BF]2) A function that close last N orders.:[/color]
void CloseLast_N_order( int N,int typeOfOrder)
{
...
}

===================
Is it possible to help?
Thank to all of you for the great work.


Re: Timmy's Expert advisor service

72
elmo3542 wrote: Tue Apr 10, 2018 7:19 am Hello Dear Timmy;
First of all, I apologize because I can't speak English well!
I need tow functions:

1)A function that calculates the amount of profit or loss of last N open orders:
double LastNorderProfit(int N , int typeOfOrder)
{
...
return(SumOflast_N_orderProfit)
}

==================
2) A function that close last N orders.:
void CloseLast_N_order( int N,int typeOfOrder)
{
...
}

===================
Is it possible to help?
Thank to all of you for the great work.
Sure, it can be checked/ controlled on the total account amount or on individual charts.

Re: Timmy's Expert advisor service

73
elmo3542 wrote: Tue Apr 10, 2018 7:19 am Hello Dear Timmy;
First of all, I apologize because I can't speak English well!
I need tow functions:

1)A function that calculates the amount of profit or loss of last N open orders:
double LastNorderProfit(int N , int typeOfOrder)
{
...
return(SumOflast_N_orderProfit)
}

==================
2) A function that close last N orders.:
void CloseLast_N_order( int N,int typeOfOrder)
{
...
}

===================
Is it possible to help?
Thank to all of you for the great work.
here is one already made that probably will suit what you want .

Re: Timmy's Expert advisor service

74
TimmyHanke wrote: Wed Apr 11, 2018 2:30 am

here is one already made that probably will suit what you want .

Thanks for reply,
I want to use those functions in my expert,then functions must to check a defined magic number and symbol.
The expert that you introduced,only close orders in profit/loss that we set,But i want:

First function, calculate the profit of the last N orders for Specified order type.
Example:
if N=5 and typeOfOrder=OPP_BUY, function return the Amount of profit/Loss of Last 5 order

Code: Select all

double LastNorderProfit (int N , int typeOfOrder)
{
...
return(SumOflast_N_orderProfit)
}
=============
The second function ,close last/first X orders for Specified order type.
Example:
if X=2 and typeOfOrder=OPP_BUY and LastOrFirst=0, function must to close last 2 Buy Orders.

Code: Select all

void CloseLast_X_order( int X,int typeOfOrder,LastOrFirst)
{
...
}
(comment: if we want to close Last X orders,LastOrFirst=0 and if we want to close First X orders,LastOrFirst=1)

Thanks again

Re: Timmy's Expert advisor service

75
elmo3542 wrote: Wed Apr 11, 2018 6:20 am


Thanks for reply,
I want to use those functions in my expert,then functions must to check a defined magic number and symbol.
The expert that you introduced,only close orders in profit/loss that we set,But i want:

First function, calculate the profit of the last N orders for Specified order type.
Example:
if N=5 and typeOfOrder=OPP_BUY, function return the Amount of profit/Loss of Last 5 order

double LastNorderProfit (int N , int typeOfOrder)
{
...
return(SumOflast_N_orderProfit)
}
=============
The second function ,close last/first X orders for Specified order type.
Example:
if X=2 and typeOfOrder=OPP_BUY and LastOrFirst=0, function must to close last 2 Buy Orders.

void CloseLast_X_order( int X,int typeOfOrder,LastOrFirst)
{
...
}
(comment: if we want to close Last X orders,LastOrFirst=0 and if we want to close First X orders,LastOrFirst=1)

Thanks again
I'm no coder of some sort, I'm using fx dreema expert advisor generating software , sure I can make those functions in an ea but can't add anything to an existing one that are outside fx dreema.


IdeaRe: Timmy's Expert advisor service

77
Greetz Timmy...

looks like the EA section is your domain .. soo look here ..... this was a little EA i built and tweaked, .. works ok till end 2016 on 1D

I would like to use dmi indi with the poison IVY...

See if you can make it happen.... 1H chart, default settings for DMI...
Check out my Intraday Swinging Setup - Updated Q4 2022... viewtopic.php?p=1295496595#p1295496595

Re: Timmy's Expert advisor service

78
simon_n3z wrote: Fri Apr 20, 2018 5:44 am Greetz Timmy...

looks like the EA section is your domain .. soo look here ..... this was a little EA i built and tweaked, .. works ok till end 2016 on 1D

I would like to use dmi indi with the poison IVY...

See if you can make it happen.... 1H chart, default settings for DMI...
As i have written many times before and is stated on the first post on this thread , i only do work on fx dreema , just because im not a coder of any sort and therefore i cant help you .

If you want my help i have to do everything from scratch

Re: Timmy's Expert advisor service

79
TimmyHanke wrote: Sun Sep 03, 2017 2:27 am Write 1,2,3 steps of what you want.

If your strategy uses indicators post them as well otherwise it can't be made.

I can create both mt4 and mt5 expert advisors.

mq4/mq5 indicators will make my process faster but most ex4/ex5 will work to .


Bring it !





I create the expert advisors using Fxdreema.
If you want to do the same i highly recommend the website.


______________________________
Dear Sir, can you please code a Simple Martingale EA as follows:

1- I should be able to specify the Price at which The EA should Open the First Order as well as the BUY or SELL Direction!
2- I should be able to specify the number of steps and the lot sizes to be used in the Martingale instead of Multiplier Function. (Max 20 steps should be enough)
3- I should be able to specify the SL (in Pips) and Take Profit (InPIPS) of EACH STEP Separately.

Thank You In Advance!

Re: Timmy's Expert advisor service

80
Dune2000 wrote: Thu May 10, 2018 12:25 am

Dear Sir, can you please code a Simple Martingale EA as follows:

1- I should be able to specify the Price at which The EA should Open the First Order as well as the BUY or SELL Direction!
2- I should be able to specify the number of steps and the lot sizes to be used in the Martingale instead of Multiplier Function. (Max 20 steps should be enough)
3- I should be able to specify the SL (in Pips) and Take Profit (InPIPS) of EACH STEP Separately.

Thank You In Advance!
Believe me any Martingale will eat up your account , how fast it happens depends on your account size.


Who is online

Users browsing this forum: AlgotradingDE, alimpe2000, areteus1, friend4you, NasdaqBoss, Ricstar_8, sylvester21, xpf2003, Yahoo Japan [Bot], Yandex [Bot] and 105 guests