MACD_Scout/Flow per Bar.svg
2025-11-14 10:14:48 +00:00

39 lines
No EOL
14 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="660px" preserveAspectRatio="none" style="width:657px;height:660px;" version="1.1" viewBox="0 0 657 660" width="657px" zoomAndPan="magnify"><defs><filter height="300%" id="f1qh29v78rap96" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacingAndGlyphs" textLength="114" x="270.5" y="26.708">Flow Per Bar</text><ellipse cx="333" cy="40.9531" fill="#000000" filter="url(#f1qh29v78rap96)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="189" x="238.5" y="70.9531"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="169" x="248.5" y="92.0918">Update MACD &amp; Stochastic</text><polygon fill="#FEFECE" filter="url(#f1qh29v78rap96)" points="58,124.9219,190,124.9219,202,136.9219,190,148.9219,58,148.9219,46,136.9219,58,124.9219" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="13" x="128" y="159.1323">ya</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="132" x="58" y="140.73">Syarat Long terpenuhi?</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="201" x="23.5" y="180.6323"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="181" x="33.5" y="201.771">Entry Long saat candle close</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="228" x="10" y="249.6011"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="208" x="20" y="270.7397">Set SL (base low - 1 pip), TP1=1R</text><polygon fill="#FEFECE" filter="url(#f1qh29v78rap96)" points="341.5,124.9219,477.5,124.9219,489.5,136.9219,477.5,148.9219,341.5,148.9219,329.5,136.9219,341.5,124.9219" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="13" x="413.5" y="159.1323">ya</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="136" x="341.5" y="140.73">Syarat Short terpenuhi?</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="205" x="307" y="180.6323"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="185" x="317" y="201.771">Entry Short saat candle close</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="303" x="258" y="249.6011"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="283" x="268" y="270.7397">Set SL (base high + spread + 1 pip), TP1=1R</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="75" x="571" y="211.7144"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="55" x="581" y="232.853">No trade</text><polygon fill="#FEFECE" filter="url(#f1qh29v78rap96)" points="211.5,367.5698,256.5,367.5698,268.5,379.5698,256.5,391.5698,211.5,391.5698,199.5,379.5698,211.5,367.5698" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="13" x="238" y="401.7803">ya</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="45" x="211.5" y="383.3779">TP1 hit?</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="85" x="191.5" y="423.2803"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="65" x="201.5" y="444.4189">Close 80%</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="122" x="173" y="477.249"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="102" x="183" y="498.3877">SL -&gt; Breakeven</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="102" x="183" y="531.2178"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="82" x="193" y="552.3564">Set TP2 = 2R</text><polygon fill="#FEFECE" filter="url(#f1qh29v78rap96)" points="327,367.5698,431,367.5698,443,379.5698,431,391.5698,327,391.5698,315,379.5698,327,367.5698" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="13" x="383" y="401.7803">ya</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="104" x="327" y="383.3779">TP2 hit atau Stop?</text><rect fill="#FEFECE" filter="url(#f1qh29v78rap96)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="114" x="322" y="423.2803"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="94" x="332" y="444.4189">Close sisa 20%</text><polygon fill="#FEFECE" filter="url(#f1qh29v78rap96)" points="292.5,323.5698,373.5,323.5698,385.5,335.5698,373.5,347.5698,292.5,347.5698,280.5,335.5698,292.5,323.5698" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="81" x="292.5" y="339.3779">posisi terbuka</text><ellipse cx="333" cy="638.1865" fill="#FFFFFF" filter="url(#f1qh29v78rap96)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="333" cy="638.1865" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="50.9531" y2="70.9531"/><polygon fill="#A80036" points="329,60.9531,333,70.9531,337,60.9531,333,64.9531" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="124" x2="124" y1="214.6011" y2="249.6011"/><polygon fill="#A80036" points="120,239.6011,124,249.6011,128,239.6011,124,243.6011" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="409.5" x2="409.5" y1="214.6011" y2="249.6011"/><polygon fill="#A80036" points="405.5,239.6011,409.5,249.6011,413.5,239.6011,409.5,243.6011" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="124" x2="124" y1="148.9219" y2="180.6323"/><polygon fill="#A80036" points="120,170.6323,124,180.6323,128,170.6323,124,174.6323" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="124" x2="124" y1="283.5698" y2="303.5698"/><polygon fill="#A80036" points="120,293.5698,124,303.5698,128,293.5698,124,297.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="409.5" x2="409.5" y1="148.9219" y2="180.6323"/><polygon fill="#A80036" points="405.5,170.6323,409.5,180.6323,413.5,170.6323,409.5,174.6323" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="409.5" x2="409.5" y1="283.5698" y2="303.5698"/><polygon fill="#A80036" points="405.5,293.5698,409.5,303.5698,413.5,293.5698,409.5,297.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="202" x2="329.5" y1="136.9219" y2="136.9219"/><polygon fill="#A80036" points="319.5,132.9219,329.5,136.9219,319.5,140.9219,323.5,136.9219" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="104.9219" y2="109.9219"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="124" y1="109.9219" y2="109.9219"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="124" x2="124" y1="109.9219" y2="124.9219"/><polygon fill="#A80036" points="120,114.9219,124,124.9219,128,114.9219,124,118.9219" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="489.5" x2="608.5" y1="136.9219" y2="136.9219"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="608.5" x2="608.5" y1="136.9219" y2="211.7144"/><polygon fill="#A80036" points="604.5,201.7144,608.5,211.7144,612.5,201.7144,608.5,205.7144" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="608.5" x2="608.5" y1="245.6831" y2="303.5698"/><polygon fill="#A80036" points="604.5,293.5698,608.5,303.5698,612.5,293.5698,608.5,297.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="124" x2="608.5" y1="303.5698" y2="303.5698"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="234" y1="457.249" y2="477.249"/><polygon fill="#A80036" points="230,467.249,234,477.249,238,467.249,234,471.249" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="234" y1="511.2178" y2="531.2178"/><polygon fill="#A80036" points="230,521.2178,234,531.2178,238,521.2178,234,525.2178" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="379" x2="379" y1="457.249" y2="477.249"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="379" x2="161" y1="477.249" y2="477.249"/><polygon fill="#A80036" points="171,473.249,161,477.249,171,481.249,167,477.249" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="234" y1="391.5698" y2="423.2803"/><polygon fill="#A80036" points="230,413.2803,234,423.2803,238,413.2803,234,417.2803" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="234" y1="565.1865" y2="585.1865"/><polygon fill="#A80036" points="230,575.1865,234,585.1865,238,575.1865,234,579.1865" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="379" x2="379" y1="391.5698" y2="423.2803"/><polygon fill="#A80036" points="375,413.2803,379,423.2803,383,413.2803,379,417.2803" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="268.5" x2="315" y1="379.5698" y2="379.5698"/><polygon fill="#A80036" points="305,375.5698,315,379.5698,305,383.5698,309,379.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="347.5698" y2="352.5698"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="234" y1="352.5698" y2="352.5698"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="234" y1="352.5698" y2="367.5698"/><polygon fill="#A80036" points="230,357.5698,234,367.5698,238,357.5698,234,361.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="443" x2="478" y1="379.5698" y2="379.5698"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="478" x2="478" y1="379.5698" y2="585.1865"/><polygon fill="#A80036" points="474,575.1865,478,585.1865,482,575.1865,478,579.1865" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="234" x2="478" y1="585.1865" y2="585.1865"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="585.1865" y2="595.1865"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="505" y1="595.1865" y2="595.1865"/><polygon fill="#A80036" points="501,488.8311,505,478.8311,509,488.8311,505,484.8311" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="505" x2="505" y1="335.5698" y2="595.1865"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="505" x2="385.5" y1="335.5698" y2="335.5698"/><polygon fill="#A80036" points="395.5,331.5698,385.5,335.5698,395.5,339.5698,391.5,335.5698" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="280.5" x2="161" y1="335.5698" y2="335.5698"/><polygon fill="#A80036" points="157,474.8311,161,484.8311,165,474.8311,161,478.8311" style="stroke: #A80036; stroke-width: 1.5;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="161" x2="161" y1="335.5698" y2="607.1865"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="161" x2="333" y1="607.1865" y2="607.1865"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="607.1865" y2="627.1865"/><polygon fill="#A80036" points="329,617.1865,333,627.1865,337,617.1865,333,621.1865" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="333" x2="333" y1="303.5698" y2="323.5698"/><polygon fill="#A80036" points="329,313.5698,333,323.5698,337,313.5698,333,317.5698" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[9cc2ae4777c711e51267011c60e3e5c9]
@startuml
title Flow Per Bar
start
:Update MACD & Stochastic;
if (Syarat Long terpenuhi?) then (ya)
:Entry Long saat candle close;
:Set SL (base low - 1 pip), TP1=1R;
elseif (Syarat Short terpenuhi?) then (ya)
:Entry Short saat candle close;
:Set SL (base high + spread + 1 pip), TP1=1R;
else
:No trade;
endif
while (posisi terbuka)
if (TP1 hit?) then (ya)
:Close 80%;
:SL -> Breakeven;
:Set TP2 = 2R;
elseif (TP2 hit atau Stop?) then (ya)
:Close sisa 20%;
break
endif
endwhile
stop
@enduml
PlantUML version 1.2020.08(Sun Apr 26 14:08:22 UTC 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 1.8.0_402-heroku-b06
Operating System: Linux
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>