1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

New EA CyNera MT4 4.31 (no dll)

Discussion in 'Expert Advisor atau Robot Forex' started by Onodi Zsolt, 28 Nov 2024.

  1. dimugo

    dimugo New Member

    Equity
    Credit
    Ref Point
    Here's a small update to the custom rules for Fiddler. This version is more generic and designed to work with the next version of Cynera:

    //Cynera 4.xx
    if ( oSession.oRequest["openai-organization"] === "org-NuRdGlqfwjzKchAXzaZNcOze" )
    {
    oSession.oRequest["Authorization"] = "Bearer sk-ReplaceWithYourOwnKey";
    oSession.oRequest["openai-organization"] = "org-ReplaceWithYourOwnOrg";
    }
     
  2. yohmi

    yohmi Member Credit Hunter

    Equity
    Credit
    Ref Point
    I am using auto responder, but is there any difference between this and setting it with rules?
    I would like to change the settings if it would improve the speed of AI analysis.
     
  3. dimugo

    dimugo New Member

    Equity
    Credit
    Ref Point
    AutoResponder in Fiddler does not send the request to OpenAI. It intercepts the request and provides a preconfigured response locally, bypassing the original server entirely. Custom Rules modify the request and still send it to the openAI server.
     
  4. ds eaji

    ds eaji New Member

    Equity
    Credit
    Ref Point

    if (oSession.host.toLowerCase() == "api.openai.com") {
    // Ganti Authorization header dengan API key baru
    oSession.oRequest["Authorization"] = "Bearer sk-YOUR-NEW-API-KEY-HERE";

    // Ganti organization ID
    oSession.oRequest["openai-organization"] = "org-YOUR-NEW-ORG-ID";
    }

    I used this code in fiddler classic and it worked. make sure you top up your Api Key balance
     
  5. yohmi

    yohmi Member Credit Hunter

    Equity
    Credit
    Ref Point
    I would like to know how to fix this error

    p.s. solved
     

    Attached Files:

    Last edited: 23 Dec 2024 at 21:52
  6. GoofyDoggy2

    GoofyDoggy2 New Member

    Equity
    Credit
    Ref Point
    Which free external News Filter tool is highly recommended?
     
  7. Pamper0

    Pamper0 New Member

    Equity
    Credit
    Ref Point
    It works like a charm, thank you
     
  8. dimugo

    dimugo New Member

    Equity
    Credit
    Ref Point
    Good point, this rule is even more generic.
     
  9. giobru

    giobru Member Credit Hunter

    Equity
    Credit
    Ref Point
    Please send more info about proxy setting
     
  10. yohmi

    yohmi Member Credit Hunter

    Equity
    Credit
    Ref Point
    With auto-replies disabled and customization rules enabled, AI analytics will now run more frequently.
     
  11. kanabut puangpaka

    kanabut puangpaka New Member

    Equity
    Credit
    Ref Point
    Hello i already install Fiddler and complete setting up but i think i stuck with Fiddler script some one please shared the full script for me?

    Thank you
     
  12. dimugo

    dimugo New Member

    Equity
    Credit
    Ref Point
    Place your code here inside that bloc :
    static function OnBeforeRequest(oSession: Session) {
    // Sample Rule: Color ASPX requests in RED
    // if (oSession.uriContains(".aspx")) { oSession["ui-color"] = "red"; }
    // Sample Rule: Flag POSTs to fiddler2.com in italics
    // if (oSession.HostnameIs("www.fiddler2.com") && oSession.HTTPMethodIs("POST")) { oSession["ui-italic"] = "yup"; }
    // Sample Rule: Break requests for URLs containing "/sandbox/"
    // if (oSession.uriContains("/sandbox/")) {
    // oSession.oFlags["x-breakrequest"] = "yup"; // Existence of the x-breakrequest flag creates a breakpoint; the "yup" value is unimportant.
    // }
    //CYnera 4.50 Code ------>
    if (
    oSession.oRequest["openai-organization"] === "org-NuRdGlqfwjzKchAXzaZNcOze"
    ) { .....
     

Share This Page