View Single Post
  #506 (permalink)  
Old 11-05-2006, 04:38 PM
lgvh lgvh is offline
Junior Member
 
Join Date: Oct 2005
Location: Costa Rica
Posts: 5
lgvh is on a distinguished road
Cool

Quote:
Originally Posted by Hendrick
An updated version of Phoenix 5 (version 5.6.02).

- MicroAccount was still not working. Changed the code as suggested by lgvh.

Manual for Phoenix is updated.
The modifications I suggest had been tested with the competition version, now I review in full the new code, here follows the necesary modifications for thes new version:

1- There is some compatibility problem with the variable name "MicroAccount" with the compiler, I rename it to "Micro_Account" (must be done in all code)

2- In addition to the original sugested corrections it is necesary to change
int CheckOpenTradeMode123()
{
int Signal = 0, err = 0, total = OrdersTotal();
double lots123 = NormalizeDouble(LotsOptimized()/3,1);
if(lots123 < 0.1) {lots123=0.1;}
to
int CheckOpenTradeMode123()
{
int Signal = 0, err = 0, total = OrdersTotal();
double lots123 = NormalizeDouble(LotsOptimized()/3,1);
if(lots123 < 0.1 && Micro_Account==false) {lots123=0.1;}
if(lots123 < 0.01 && Micro_Account==true) {lots123=0.01;}
Now tested with Real Trader (Metatrader from www.RealTrader.lv)

I'm sorry to post the corrections without test the new version , I just saw the LotsOptimized() function that was the same (with the exception of the change of the variable name AccountIsMicro) and I posted in a hurry the code that worked for the previous version. Excuse my English, hope you understand
Reply With Quote