Reverse LotSize Calculation

 
Hi Everyone. I am relatively new here and I would like to commend you all for your good Input.

I have an ea which I want to modify the lotsize calculation.
Right now its a pending order ea which sends trades in batches, 5 buystops and 5 sellstops and it also calculates lotsize in ascending order using LotMultiplier and MaxOrdersAllowed as point of reference.

Instance: Buystop 0.2, 0.4, 0.6, 0.8, 1.0
                 Sellstop 0.2, 0.4, 0.6, 0.8, 1.0

I want it to start calculating as: 
                 Buystop 1.0, 0.8, 0.6, 0.4, 0.2
                 Sellstop 1.0, 0.8, 0.6, 0.4, 0.2

Mind you, its taking MaxOrdersAllowed and LotMultiplier to calculate the lotsize.

I would appreciate a line of code or lines of code to mk me achieve this.


Thanks
 

Forum on trading, automated trading systems and testing trading strategies



Welcome,

  • Usually people who can't code don't receive free help on this forum, though it could happen if you are lucky, be patient.
  • If you show your attempts and describe well your problem, you will most probably receive an answer from the community.
  • If you don't want to learn to code, nothing bad, you can either look at the Codebase if something free already exists, or in the Market for paid products (sometimes free also).
  • Finally, you also have the option to hire a programmer in the Freelance section.

Good luck.


Reason: