±×¸² 1
±×¸² 2
¸ðÀÇÅõÀÚÀÔ´Ï´Ù
¸Åµµ ½ÅÈ£´Â ³ª¿À³ª ¸ÅµµÁÖ¹®ÀÌ ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù
¼öÁ¤ ºÎŹµå¸³´Ï´Ù
ÇǶó¹Ìµù ¼³Á¤- ´Ù¸¥ ÁøÀÔ ½ÅÈ£¸¸ Çã¿ë
°íÁ¤ÀÚ»ê ±âÁØ ÁøÀÔ
À¸·Î ¼³Á¤ÇÏ¿´½À´Ï´Ù °¨»çÇÕ´Ï´Ù
input : ±Ý¾×(10000000), ÀÏÂ÷(0), ÀÌÂ÷(0), »ïÂ÷(0), »çÂ÷(0),¿ÀÂ÷(0),À°Â÷(0),Ä¥Â÷(0),ÆÈÂ÷(0),±¸Â÷(0),½ÊÂ÷(0),½ÊÀÏÂ÷(0),½ÊÀÌÂ÷(0),½Ê»ïÂ÷(0),½Ê»çÂ÷(0),½Ê¿ÀÂ÷(0),½ÊÀ°Â÷(0),½ÊÄ¥Â÷(0),½ÊÆÈÂ÷(0),½Ê±¸Â÷(0),À̽ÊÂ÷(0), ¼ÕÀý(0), ÇÁ·Î(99), ³¯Â¥(20240822);
var: PP(99999999999),count(0);
if Bdate != Bdate[1] Then
count = 0;
PP = lowest(L,900)*ÇÁ·Î + lowest(L,900);
if sDate > ³¯Â¥ Then
if MarketPosition == 0 and Low <= ÀÏÂ÷ and count == 0 Then
buy("b1");
if MarketPosition == 1 Then{
if MaxEntries == 1 and Low <= ÀÌÂ÷ Then
buy("b2");
if MaxEntries == 2 and Low <= »ïÂ÷ Then
buy("b3");
if MaxEntries == 3 and Low <= »çÂ÷ Then
buy("b4");
if MaxEntries == 4 and Low <= ¿ÀÂ÷ Then
buy("b5");
if MaxEntries == 5 and Low <= À°Â÷ Then
buy("b6");
if MaxEntries == 6 and Low <= Ä¥Â÷ Then
buy("b7");
if MaxEntries == 7 and Low <= ÆÈÂ÷ Then
buy("b8");
if MaxEntries == 8 and Low <= ±¸Â÷ Then
buy("b9");
if MaxEntries == 9 and Low <= ½ÊÂ÷ Then
buy("b10");
if MaxEntries == 10 and Low <= ½ÊÀÏÂ÷ Then
buy("b11");
if MaxEntries == 11 and Low <= ½ÊÀÌÂ÷ Then
buy("b12");
if MaxEntries == 12 and Low <= ½Ê»ïÂ÷ Then
buy("b13");
if MaxEntries == 13 and Low <= ½Ê»çÂ÷ Then
buy("b14");
if MaxEntries == 14 and Low <= ½Ê¿ÀÂ÷ Then
buy("b15");
if MaxEntries == 15 and Low <= ½ÊÀ°Â÷ Then
buy("b16");
if MaxEntries == 16 and Low <= ½ÊÄ¥Â÷ Then
buy("b17");
if MaxEntries == 17 and Low <= ½ÊÆÈÂ÷ Then
buy("b18");
if MaxEntries == 18 and Low <= ½Ê±¸Â÷ Then
buy("b19");
if MaxEntries == 19 and Low <= À̽ÊÂ÷ Then
buy("b20");
if High >= lowest(L,900)*ÇÁ·Î Then
ExitLong("BP",atlimit,lowest(L,900)*ÇÁ·Î);
count = count + 1;
if Low < ¼ÕÀý Then
exitlong("BL");
count = count + 1;
}