読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

StrategyQuant 3.8.2 – カスタムコードの変更プロジェクト

32 replies

カリス

カスタマー、bpb_participant、コミュニティ、sq-ultimate、414件の回答。.

プロフィールを表示

8年前 #201967

Project Preview:
As we all know, StrategyQuant is a great tool with huge possibilities and a great development environment for quants,
i have huge respect and cant be thankful enough for a software like this to be open for the average user,
you have to understand that tools like this are built and sold to closed groups and they are paying big sums for things like that,
so as a quant & programmer my self i have plenty respect to Mark Fric and his team for this tool and the community of quant that we have here on the official forum and on my Ryver team chat
trading is a very lonely business and it is great that we have over 100+ members that are sharing ideas and helping each other,
i am a very contributing person in this community as you may or may not know already,
so i am now willing to share my work and improved MQL4 code based on the latest official release of StrategyQuant version 3.8.2,

the thing is that the SQ Development team is so busy with working on the new version of StrategyQuant 4,
many things and bugs are left-out and not been updated, which is perfectly understandable from my side,
the new version of StrategyQuant 4 will be even more futuristic and will offer much more features and a greater professional working interment,
so because there are no current work going on on the current version StrategyQuant 3.8.2 i had to take this project on my self,

many things/bugs ware changed/fixed safety & performance ware also greatly improved, below i will present the full changelog of improvements and enhancements,
this changelog will be updated on the official topic i created on the forum:
OFFICIAL TOPIC: https://strategyquant.com/forum/topic/strategyquant-3-8-2-custom-code-modification-project/
there i will point-out all the progress and post the updates for the code,
each time the code changes i will notify about it on the official topic apointed to this project,

this project will be hopfuly improved by other members from our community but will need to be comfirmed first so that we will be having no errors and new bugs with the time,
please feel free to share suggestions on further improvements and enhancements of this project inside the official topic on the forum dedicated to this project,

also join in to our Ryver team chat group by writing your Email address as a reply in this topic:
RYVER INVITATION REQUEST: https://strategyquant.com/forum/topic/6754-official-community-team-chat-on-ryver-come-and-join-us-benefit-from-both-worlds
Join us to get more out of SQ and enhance your knowledge experience and skills!
would be cool to see you there with us too!

Best Regards, Arik.

Feel free to contact me:
RYVER – I am highly active on Ryver so there is no need to use other ways to contact me, but you can..
Forum PM – https://strategyquant.com/forum/user/8752-karish/
Email – [email protected]

 

 

//== Version 1.0 (Project officially published & started):

  • // * All strategies with (Limit/Stop/Market) orders with Win% of under 50% are buged and wont work the same between SQ to MT4. – (prove me wrong)
    // Avoid this bug by heading to (“Building strategies > Settings > Ranking options > Add a criteria of Win%<=50”).
    //
    // * OrderClose was modified to close the order ASAP and not wait till the slippage is lower then setted by the parameter. – (for those who trade on a MarketMaker broker)
    //
    // * Every single Log move / Error is in much detail now.
    //
    // * when dropping the EA on a chart it will not only show you when for what Pair&TF the EA ment to be traded on,
    // but will automaticly change to the right Pair&TF by it self,
    // there is no possibility to change the Pair&TF back by an accsedent or so, so it is safe and wont trade on a different Pair&TF by mistake.
    //
    // * when dropping the EA on a chart it will show a red warning text on the chart if there are Bars<100 for indicators calculation porpoises & etc.
    //
    // * Automatic MagicNumber is set to each and every EA by default, no need to change each EA manually or checking if there are 2 or more EAs with the same MagicNumber, there is a unique MagicNumber to each and every EA based on the “.str” file name..
    //
    // * Each order is sending a request to the broker’s server before execution,
    // it’s done to eliminate errors and order’s failiur,
    // in addition to this, each and every order will retry the request until sucsess,
    // – OrderSend will try 20 retries each 2 sec it will retry once again and once more (20 times becuase we want to have the order still in our favor),
    // – OrderModify will try 200 retries each 2 sec it will retry once again and once more,
    // – OrderClose & OrderDelete will try 200 retries each 2 sec it will retry once again and once more.
    //
    // * Shows Spread when order has been opened.
    //
    // * MaxSpread was added, you can now choose your spread limitation just as with slippage limitation,
    // if the current spread is higher then the MaxSpread the order will be delayed and will be retried each 2 sec untill sucsess.
    //
    // * Orders became much safer, each order (MarketOrders/PendingOrders) comes with an automatic SL/TP by a must.
    //
    // * Ensures that all orders are closed at the end of the time range/Friday/end of the day.
    //
    // * and much more minor things ware done, cant remember them all XD.

 

Download here

0

Leoš Müller

カスタマー、bbp_participant、コミュニティ、0件の返信。.

プロフィールを表示

8年前 #232487

<p style="”text-align:" left;”> Thank you for your great work. Is it possible with this code to have more strategy in one MT4? For example 40?

0

tnickel

カスタマー、bbp_participant、コミュニティ、sq-ultimate、494件の返信。.

プロフィールを表示

8年前 #233272

I have a problem with the orginal SQ 3.8.2 mql code. I have a problem if I installed 19 EAs in Timeframe M5 on one metatrader.

The broker send trade context busy because the EAs make to often modfy order at the same time.

I solved this problem in this way.

 

bool changePendingOrder(double openPrice, double stopLoss, double profitTarget) {
if(openPrice == OrderOpenPrice() && stopLoss == OrderStopLoss() && profitTarget == OrderTakeProfit()) {
// all values are the same, we don’t need to change anything
return(true);
}

sleeptimemod=(MagicNumber%10)*1000;
Print(“Sleeptime for mod=”+sleeptimemod);
Sleep(sleeptimemod);

if(OrderModify(OrderTicket(), openPrice, stopLoss, profitTarget, 0)) {
return(true);
}

return(false);
}

 

Explanation:

I wait for some eas 0-10 seconds before I modify the order. I think 10 seconds maximum delay is not so important.

 

https://monitortool.jimdofree.com/

0

2件の返信を表示中 - 31 - 32件目 (全32件中)

← 1 2 3