Gamestudio Links
Zorro Links
Newest Posts
Gracefully closing a panel
by Zheka. 07/17/19 15:02
MaxDD in %
by Zheka. 07/17/19 14:51
New Zorro version 2.15
by jcl. 07/17/19 12:21
Issues with converting .csv to .t6
by jcl. 07/16/19 14:46
IG plugin initial release
by YG8. 07/16/19 10:02
First Steps for backtesting with ASCII data
by Charttrader. 07/16/19 08:50
Beginners Workshop
by jcl. 07/15/19 06:29
Dukascopy plugin (yet another version)
by dh85. 07/15/19 05:03
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
12 registered members (jyd, kvm, Peeyotch, Grat, AndrewAMD, FLD, TradingMax, Quad, Matt_Aufderheide, 1 invisible), 705 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Charttrader, bjomu, catharticlapse, carmyss121, Evox
18255 Registered Users
Active Threads | Active Posts | Unanswered Today | Since Yesterday | This Week
Automated Trading
33 minutes ago
JCL,

If I launch a script for Testing/Trading and then [Stop] it and/or close Zorro, the panel continues to be visible on the screen without the possibility to close it (no closing/ 'cross' button in the upper right corner).
I then have to kill that Zorro instance via Task manager.

I tried this in the click():
Code
  if (row == -1 && is(RUNNING))  panel(0, 0, 0, 0);

Then pressing [Result] while the script awaits a click on my START button in the panel (while (!START && is (RUNNING)) wait(100); )- works and makes the panel disappear.

However, if I then close Zorro altogether, an instance of Zorro still runs and still has to be killed via Task manager.

Why would this happen?
0 4 Read More
Starting with Zorro
07/14/19 15:53
Hi,

I dont like trail function. With this TMF function you can lock profit without laugh

Code
//--------------------- TMF --------------------------------------------------------
#define VAR_LOCK TradeVar[0]
#define VAR_ACTI TradeVar[1]
#define VAR_CLOSE TradeVar[2]

int myTMF(){
  if (TradeIsEntry){
    // only one each trade?
    VAR_LOCK=-1;  // No lock
    VAR_ACTI=1*TradeLots;          // 1 USD/per LOTS ... MT4 1=0.01
    VAR_CLOSE=VAR_ACTI*0.8;        // after profit is target, profit under 80% close trade
  }
  
  if(TradeIsOpen){
    if (TradeProfit > VAR_ACTI)
      VAR_LOCK=1.0; // activate trigger

    if (VAR_LOCK > 0 )
    if (TradeProfit < VAR_CLOSE){
      exitTrade(ThisTrade);
      return 16;
    }

    if (TradeProfit > VAR_ACTI*1.05){
      // Profit > ACTI+5%
      VAR_ACTI=TradeProfit;
      VAR_CLOSE=VAR_ACTI*0.8;
    }
  }    
  
  return 0;
}
0 60 Read More

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1