Forex Zone - Forex Forum

supply and demand EA

Discussion started on EA Modifications

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
I have a EA I’ve been testing, I have attached it, but needs some changes doing,


It places orders at untested resistance areas, It uses supply and demand areas,


Can you tell me if the supply and demand indicator is built into the EA?


Because there is no way to adjust the setting for the supply and demand indicator,


The below snapshot which has the EA attached to it and also the indicator, but if I change the indicator setting no change happens, The EA just uses the default settings, I want it to use the setting I set in the indicator. Also is attached the photo of the EA settings, very basic stuff, can I add more stuff in here? Can you advise?


I have attached both EA and Indicator, Please advise what is the best option , if any.


Linkback: https://www.forex.zone/ea-modifications/17/supply-and-demand-ea/67/
#1 - June 23, 2018, 02:03:23 PM
Attachments:
« Last Edit: June 23, 2018, 02:34:16 PM by Admin »

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1

Hi,
I have researched your EA and get the following:


"ifif the supply and demand indicator is built into the EA?" -No, the EA just looking for the necessary objects in the chart. You must run the indicator separately.
But, for testing in the strategy tester, the EA starts the indicator with the default settings.


I suggest adding the indicator settings that are important to you in the EA settings panel. In this case, you will have to run the EA only.


What do you think? Thanks
#2 - June 23, 2018, 03:28:13 PM
« Last Edit: June 23, 2018, 03:30:31 PM by CrazyProg »

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

Hi and Thanks for your reply,
Bit confused you say : [font=]I suggest adding the indicator settings that are important to you in the EA settings panel. In this case, you will have to run the EA only.[/font]


How do I do this? sorry it might be a strange question.
In the indicator : the zone fuzzfactor, if I change this value the supply and demand levels change, the default is 0.75
If I put a different value like 0.25  in the EA settings nothing changes?
Am I doing something wrong?


Vinn
#3 - June 23, 2018, 06:53:25 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1

Hi, np.
As far as I understood the algorithm of the EA - the EA uses the indicator in the default mode, only in the strategy tester. In real time, you need to run the indicator yourself. Correctly?


I also found an error. The EA does not open long transactions. Correctly?


Do not worry, you have to do nothing. I'll help you 8) . Please indicate the important parameters of the indicator for you.
Thanks
#4 - June 23, 2018, 08:41:54 PM

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

Hi CrazyProg,
Thanks for your help,
You say: In real time, you need to run the indicator yourself. Correctly?
I'm not sure on what you mean correctly?
Oh as far as I know it was opening buy and sell orders, but I don't understand coding, so you may have spotted something not right, is it a easy fix?
The important thing in the indicator setting is the ZONE FUZZ FACTOR, if this can be added to the EA that would be great,
Regards
Vinn
#5 - June 23, 2018, 09:14:55 PM
« Last Edit: June 23, 2018, 09:24:18 PM by forex167 »

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Hi Vinn,

In the strategy tester, the EA does not open any BUYs.
There is an error in the code:

Code: [Select]
double get_sup()
  {
   double _res=0;
   double _tmp=0;
   long _chart=ChartID();
   for(int i=0;i<ObjectsTotal(_chart);i++)
     {
      string _name=ObjectName(_chart,i);
      if(StringFind(_name,"R#S",0)>0 && StringFind(_name,"Untested",0)>0) _tmp=ObjectGetDouble(_chart,_name,OBJPROP_PRICE1);
     
     }
   return(_res);// return lower untested support
  }


In this case _res will always be 0.
Please check which version of the EA is trading correctly. Maybe you need its modification and not the one that I have.
#6 - June 24, 2018, 07:15:15 AM
« Last Edit: June 24, 2018, 07:30:38 AM by Mikser »

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

This is what I got:

#7 - June 24, 2018, 02:47:51 PM
Attachments:

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
The EA is the same one I posted above
#8 - June 24, 2018, 03:09:21 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1

This is what I got:
You show the res level, but I found an error in the code for the sup level.
#9 - June 24, 2018, 07:21:52 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
The EA is the same one I posted above
Ok, NP!
Thanks
#10 - June 24, 2018, 07:24:03 PM

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

This is what I got:
You show the res level, but I found an error in the code for the sup level.



oh more error's 
#11 - June 24, 2018, 08:10:13 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1
Hi, please test it. Thanks
#12 - June 25, 2018, 11:26:07 AM
Attachments:

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

Thank you so much, I will test it and get back to you with an update.


Vinn
#13 - June 25, 2018, 11:58:07 AM

  • Newbie
  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0

Just done a quick backtest, everything seems to be running like clock work, So now I have loaded on demo to live forward test, will let you know.


One Question, Is there a way I can do an Optimization to find a good value for the Zone fuzz factor?  because when I do an Optimization nothing happens. no values are given.


Vinn
#14 - June 25, 2018, 03:12:30 PM

  • Full Member
  • Posts: 244
  • Points: 363
  • Likes Received: 140
  • Reputation: +16/-1

One Question, Is there a way I can do an Optimization to find a good value for the Zone fuzz factor?  because when I do an Optimization nothing happens. no values are given.
 
Unfortunately, for this it is necessary to change the indicator code to use its value buffers instead of graphic objects. Or globally implement the code from the indicator in the EA.
#15 - June 25, 2018, 10:03:32 PM

Members:

0 Members and 1 Guest are viewing this topic.