PROCHAIN CROISEMENT DE LA STO APRES CROISEMENT DE L’ICHIMOKU

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #217333 quote
    Samir pluquin
    Participant
    Junior

    Bonjour a tous la communauté

    Après avoir fait de nombreuse recherche et avoir était aider par vous tous ( un grand merci encore !!!!!!! )

    je viens de constituer ma stratégie, il s’agit de prendre position dans un premier temps quand  il y a le croisement de l’ICHI et ensuite au prochain signal de la STO

    pour cela je viens de paramétrer la stratégie dans le code ci dessous

    pouvez vous me dire si il manque des choses svp

    merci beaucoup de votre aide =)

     

     

    //--- ichimoku parameters
    p1=9
    p2=26
    p3=52
    p4=0
    // ---
    tenkan=(highest[p1](high)+lowest[p1](low))/2
    kijun=(highest[p2](high)+lowest[p2](low))/2
    SpanA=(tenkan[p4]+kijun[p4])/2
    SpanB=(highest[p3](high[p4])+lowest[p3](low[p4]))/2
    c1 = (spanb CROSSES UNDER spana)
     
    //---
    if c1 then
    event1=barindex
    endif
    
    if c1 and Stochastic[14,3](close) crosses over Stochasticd[14,3,5](close) and barindex>event1 and event1>0 then
    BUY 10 SHARES AT MARKET
    ENDIF
     
    // Stops et objectifs
    SET STOP pLOSS 20
    SET TARGET pPROFIT 5
    
    #217378 quote
    Samir pluquin
    Participant
    Junior

    Bonjour a tous la communauté =)

    j’ai un souci avec un code, que je pense avoir mal paramétrer, il s’agit de prendre position au premier signal de la STO après le croisement de l’ichimoku dans le futur, pour cela j’ai coder cette stratégie ci dessous ,

    pouvez vous me dire ce que je dois modifier svp

    merci beaucoup de votre aide =)

    DEFPARAM CUMULATEORDERS = false
    
    //--- ichimoku parameters
    p1=9
    p2=26
    p3=52
    p4=0
    // ---
    tenkan=(highest[p1](high)+lowest[p1](low))/2
    kijun=(highest[p2](high)+lowest[p2](low))/2
    SpanA=(tenkan[p4]+kijun[p4])/2
    SpanB=(highest[p3](high[p4])+lowest[p3](low[p4]))/2
    c1 = (spanb CROSSES UNDER spana)
     
    //---
    if c1 then
    event1=BarIndex
    endif
     
    if  Stochastic[14,3](close) crosses over Stochasticd[14,3,5](close)and barindex>event1 and event1>0  then
    BUY 10 SHARES AT MARKET
    ENDIF
     
    // Stops et objectifs
    SET STOP pLOSS 20
    SET TARGET pPROFIT 5
    #217379 quote
    fifi743
    Participant
    Master

    pour etre sur des variables il faut grapher les variables
    comme ceci
    a la fin du code on ecrit par exemple
    comme ca on suit la variable ,les croisements des span

    graph event1
    graph spana
    graph spanb

    Samir pluquin thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

PROCHAIN CROISEMENT DE LA STO APRES CROISEMENT DE L’ICHIMOKU


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by fifi743
2 years, 8 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 07/05/2023
Status: Active
Attachments: No files
Logo Logo
Loading...