All "pips parameters" calculated using ATR

Avatar
  • updated
  • Completed

We already have "ATR * coefficient" mode for Step calculation.

But it is only for Step. And we must estimate "base" values for all other parameters nominated in pips for each new pair we want to use.

My idea is to add common option "Use ATR as a base for all pips parameters" and when it is enabled, calculate SL, TP, Step, Trailing, BreakEven, etc as a "ATR * parameter value".

For example, ATR on D1 = 150.0 pips. If TakeProfit = 0.3 it means TP = 150*0.3 = 50.0 pips. And this value will change every day (if TF for ATR is D1).

And the same for all parameters.

What do you think?

How would you rate the customer service you received?

Satisfaction mark by Andrey Khatimlianskyi 4 years ago

Add a comment about quality of support you received (optional):

Avatar
1
Ulises Cune
Quote from Sai Pratap

Thanks. But how to use this?

Hello Said and Community. 

I have created a new version where I correct some errors.

The file is a powershell script. It is executed in the following way.

Open a command line "cmd.exe" and write

powershell.exe -file ". \ Convert_2.30_to_2.31.ps1" EURUSD-v2.30.set

Convert_2.30_to_2.31.ps1

Avatar
1
Sai Pratap

Live set with 2.31.3.set


Above is the Live set for 2.31.3 version of CP. I have checked the backtest results before and after updation. May check at ur end as well.

Avatar
0
Sai Pratap
Quote from Ulises Cune

Hi Andrey, 

I have created a powershell script that converts the .set files from version 2.30 to version 2.31 with your recommendations. Please check it out. 

It will be used for future updates.

Convert_2.30_to_2.31.ps1

Thanks. But how to use this?

Avatar
2
Ulises Cune

Hi Andrey, 

I have created a powershell script that converts the .set files from version 2.30 to version 2.31 with your recommendations. Please check it out. 

It will be used for future updates.

Convert_2.30_to_2.31.ps1

Avatar
5
Andrey Khatimlianskyi
  • Completed

Done!

Now you can set "Volatility for all parameters nominated in points", as well as limit volatility min and max size:

Then you can set "calculation mode" for any parameter to "Coefficient to Volatility":

In this example, TrailingStop size will be calculated as "Current ATR * 1.5", Trailing Step will be "ATR * 0.1".

You can set "calculation mode" for the following parameters:

  • Pending entry: Distance to order and Cancel after distance
  • StopLoss size
  • TakeProfit size
  • Min profit to close on signal
  • Martingale Step size
  • Anti-martingale Step size
  • Anti-StopLoss size
  • TrailingStop size
  • Trailing Step
  • Start trailing after

To make all parameters simpler, I changed Martingale and Anti-martingale type. Now they can be "Enabled" or "Disabled" only.

To use Step like volatility use "Step size calc mode" parameter. To increase step size with every order use "Step increase coefficient" parameter (set 1 to use fixed step).

Warning! All sets with martingale or anti-martingale modes enabled must be reviewed!

  1. "ATR * coefficient" mode must be replaced with "Martingale enabled",
    "Step size calc mode" must be set to "Coefficient to volatility",
    ATR parameters must be set in the corresponding section.
  2. "Previous step * coefficient" mode must be replaced with "Martingale enabled".
    No other changes are needed.
  3. "Step increase coefficient" for "Fixed step" mode must be set 1.

Guys, I need your assistance in reviewing of all set-files.

Please, check your favorite sets, compare the results and upload new version on forum if results are the same with the new version.

This is beta-version of EA. Don't run it live till you're not sure it works correctly!

Avatar
1
Andrey Khatimlianskyi
  • Started

I'm going to release this feature before the Friday

Avatar
0
Jose FP

Positive for a relaxed account, I think.

I would like to add that to add options

We would need a single button in the robot "options" that would display a window with a Pop-up menu that would offer the existing ones and be able to edit-select. A cordial greeting.

Avatar
0
GregoryAFX

Great step for self adapting EA! I want this feature for TrailingStop size for me.  

Avatar
0
Norton Faldi

great idea. it will maximize tp. love it