Forex Zone | Forex Forum

supply and demand EA

Discussion started on EA Modifications

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_clip
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 »

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx

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 »

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_xx

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

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx

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

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_xx

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 »

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx
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 »

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_clip

This is what I got:

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

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

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx

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

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx
The EA is the same one I posted above
Ok, NP!
Thanks
#10 - June 24, 2018, 07:24:03 PM

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_xx

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

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_clip
Hi, please test it. Thanks
#12 - June 25, 2018, 11:26:07 AM
Attachments:

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_xx

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

  • Posts: 23
  • Points: 0
  • Likes Received: 5
  • Reputation: +0/-0
supply and demand EA in EA Modifications_xx

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

  • Posts: 224
  • Points: 316
  • Likes Received: 122
  • Reputation: +15/-1
supply and demand EA in EA Modifications_xx

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.


* Share Topic

Share via delicious Share via digg Share via facebook Share via linkedin Share via pinterest Share via reddit Share via stumble Share via tumblr Share via twitter

* Similar Topics

xx
Supply and demand

Started by Satria41 on Forex Education

28 Replies
387 Views
Last post March 20, 2021, 11:34:40 PM
by Trader Hijrah
clip
Trading with Supply and Demand

Started by Caripi on Trading Systems

34 Replies
2023 Views
Last post March 06, 2021, 01:22:07 AM
by Keylevel
clip
Supply/Demand indicator

Started by Lolek555 on MT4 / MT5 Indicators

10 Replies
1684 Views
Last post March 11, 2021, 07:41:45 AM
by tuancicak
xx
THE LAW OF SUPPLY AND DEMAND IS A WRONG PERCEPTION

Started by rushart on Forex Education

21 Replies
218 Views
Last post March 11, 2019, 12:48:46 AM
by Reztu